appleEvent <class>, <ID>, <sender>
on appleEvent theClass,theID -- execute a set of statements in a text file if theClass is "misc" and theID is "dosc" then request appleEvent data -- get the content of the AppleEvent do URL ("file:" & it) end if pass appleEvent end appleEvent
For more information about Apple events, see Apple Computer's technical documentation, Inside Macintosh: Interapplication Communication, located at http://developer.apple.com/documentation/mac/IAC/IAC-2.html.
- class: The class and ID together identify the exact Apple event that wasreceived.The class parameter is the event class: possible classesinclude aevt (for required Apple Events such as "open document" and"print" ), misc (for miscellaneous events such as "do script" ), andothers.
- ID: The ID parameter is the name of the specific Apple event.
- sender: The sender parameter is the address of the process that sent the Appleevent.