|
||||||||||||||||||
Sending Raw AppleEventsSending Raw AppleEvents is a two step process: Step 1 - Identify the target application This is done using the MacOS.appSelf() or MacOS.appBySignature() methods. MacOS.appSelf() targets the currently running application while MacOS.appBySignature() targets any other running application on your Macintosh. For instance, to target the MacOS Finder:
Step 2 - Construct and send the AppleEvent Once you have created a target for the AppleEvent, you can use the following syntax to send an AppleEvent:
Putting these two steps together, the following script tells the Finder to display a dialog box containing a message:
|
||||||||||||||||||