Creating and Sending Apple Events
If you want your application to create and send Apple Events to other
applications, you should read the following sections:
Components of Apple Events describes the various components of an
Apple event that uniquely identify it.
to be taken to create and send an Apple Event.
event.
Specifying a Target Address describes how to specify a target address
when creating an Apple event.
an Apple event once you have created it.
AESend routine and contains a code example that goes through all the steps of creating and sending an Apple event.
Other sections that might be of interest are the following:
responsible for disposing of Apple event data structures.
Dealing With Timeouts describes what to do if you choose to have your
application wait for a reply when you send an Apple event
processes events while your application waits for a reply Apple event. This is
only necessary if you choose to have your application wait for the reply Apple
event.
which processes high-level events while your application waits for a reply
Apple event. This is only necessary if you choose to have your application wait
for the reply Apple event.
Launch Application with Doc Using Apple Events is a code example
which shows how to send an Apple Event to the Finder to instruct it to launch a
particular application with a particular document.