Basically you write the AppleScript as a string (either in a variable or read from a field), and then say:
do <container> as applescript So to make the Finder activate, you can say: put "tell application " & quote & "Finder" & quote" & cr & \ "activate" & cr & "end tell" into tScript do tScript as AppleScript For some cool ways to use AppleScript in Rev, take a look at the AppleScript section of the Rev Tips and Tricks page on my site: http://www.sonsothunder.com/devres/revolution/revolution.htm As far as reacting to appleEvents goes, you trap the "appleEvent" message in your card or stack script, as in: on appleEvent tClass, tID, tSender switch (tclass& tID) case "aevtoapp" -- trapped open application appleEvent break case "aevtodoc" -- trapped open document appleEvent break -- etc. end switch end appleEvent Hope this helps, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 09, 2002 2:39 PM Subject: Where can I learn about Applescript and Revolution? > I'm trying to find "Applescript" in the Revolution documentation, and how to > go about making Applescript calls and reacting to Apple Events - - - can > anyone point me to a web-site or tell me where in the docs I could find more > details on how this is done? > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
