Re: Apple Events vs. AppleScript
Re: Apple Events vs. AppleScript
- Subject: Re: Apple Events vs. AppleScript
- From: Olof Hellman <email@hidden>
- Date: Mon, 21 May 2001 10:10:48 -0700
>
> Can anyone explain the difference between an Apple Event and an
AppleScript?
An AppleScript is the human-readable form of MacOS interapplication
messages. AppleScript is a language.
Apple Events are the interapplication messages themselves, a sequence of
bytes which applications send to one another to cooperatively get things
done. The format of the data is an Apple defined standard. Apple Events
are a communication protocol.
If you double-click on an item in the Finder, an 'open documents' AppleEvent
will get sent to the application which is the creator of the file. That
same message can be expressed in AppleScript as
tell application "some app"
open alias "MacHD:some folder:name of the file you clicked on"
end tell
- Olof