Article Preview
Buy Now
COLUMN
Ask The Experts
Issue: 1.6 (June/July 2003)
Author: Seth Willits
Article Description: No description available.
Article Length (in bytes): 9,341
Starting Page Number: 32
Article Number: 1616
Resource File(s):
1616.zip Updated: 2013-03-11 19:07:56
Related Web Link(s):
http://www.tildesoft.com/
Excerpt of article text...
I didn't have any trouble
Q: How can I execute a dynamic AppleScript directly from REALbasic?
This is a good question. Currently there are some issues with REALbasic 4.5 and AppleScripts under OS X (these issues have been resolved with later versions of OS X and RB, though). Thankfully, there are a few ways we can work around this. Other than doing the hokey-pokey wearing your clothes inside out, in OS X we can use a very simple shell call, and in Classic we can use a good chunk of code that utilizes declare statements to get the job done.
For OS X, the shell method is as simple as passing a few parameters to the command line utility
osascript
. To execute an AppleScript directly from a string variable, we use:
...End of Excerpt. Please purchase the magazine to read the full article.