applescript - do script

Ken Ray kray at sonsothunder.com
Tue May 15 18:07:14 EDT 2007


On Tue, 15 May 2007 19:26:59 +0200, Jim Sims wrote:

> I looked at the applescript dictionary for my Rev 2.7.4 application
> and it had:
> do script v : Execute Revolution script
> 
> So, I tried telling my application to do the following as a simple 
> test from the
> applescript script editor:
> 
> tell application "MyApp"
> 	activate
> 	do script  "quit"
> end tell

BTW, this works perfectly fine in 2.8.1...

:-)

And if you want to give your apps custom AppleScript commands, take a 
look at this tip:

ascr006: Creating a Custom AppleScript Dictionary For a Revolution 
Application
http://www.sonsothunder.com/devres/revolution/tips/ascr006.htm

Enjoy!

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list