applescript "do script"

Jim Ault JimAultWins at yahoo.com
Fri Sep 19 15:08:04 EDT 2008


Try this version and see what you get in Script Editor
on testIt
  put  "Hello" into msg
  return "got it in Rev"
end testIt

My 'answer Hello' script worked fine repeatedly in 2.9 on OSX 10.5.4.

Jim Ault
Las Vegas


On 9/19/08 8:43 AM, "Thomas McGrath III" <3mcgrath at comcast.net> wrote:

> 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.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list