FROM REV to APPLESCRIPT

Brad Allen BradAllen at mac.com
Sun Aug 11 22:05:02 EDT 2002


>do theScript as AppleScript

I'd like to further add to what Sarah said, that it's easy to go the 
other way and have Rev obtain a value from an Applescript. At the 
points where your Applescript might end, use the return command to 
return a value to Rev, as in:

try
    doSomething
    set foo to whatever
on error myError
     return myError
end try
return whatever

After Rev executes this Applescript, it will populate the Result with 
the returned value from Applescript, as in:

do theScript as Applescript
put the result into theScriptResult





More information about the use-livecode mailing list