applescript "do script"

Thomas McGrath III 3mcgrath at comcast.net
Fri Sep 19 11:43:39 EDT 2008


Ken,

Thanks for getting back so quick. Forgetting the standalone for now, I  
opened 3.0 then created a news stack, opened the stack script and  
entered the script you did, then opened AS and entered the script you  
had there. RR comes to the front but no script executes. i.e. no  
answer dialog pops up...

But if I change the do script to
do script "beep"

it does beep

????

Tom
On Sep 19, 2008, at 11:25 AM, Ken Ray wrote:
>
> Thomas, I'm checking 3.0, and it seems to be OK for me in the IDE...  
> here's
> what I did:
>
> In Script Editor:
>
> tell application "Revolution"
>  activate
>  do script "testIt"
> end tell
>
> In Revolution, in a brand new stack, I set the stack script to:
>
> on testIt
>  answer "Hello"
> end testIt
>
> I switched to Script Editor and ran the script, and it activated Rev  
> and
> answered "Hello".
>
> One thing I *did* notice, though, was that if there was a Script  
> Editor
> window open in the Rev IDE, even if it wasn't the frontmost window,  
> Rev
> would only activate and wouldn't execute the appleScript. I'm  
> assuming this
> is due to some frontscript that the Rev IDE is implementing when the  
> script
> editor is open.



More information about the use-livecode mailing list