Important: The information in this document is obsolete and should not be used for new development.
Creating an Apple Event Record
Use theAECreateAppleEvent
function to create an Apple event record. Using the arguments you pass to theAECreateAppleEvent
function, the Apple Event Manager constructs the data structures describing the event class, the event ID, and the target address attributes of an Apple event. The event class and event ID, of course, identify the particular event you wish to send. The target address identifies the intended recipient of the Apple event.You can specify two other attributes with the
AECreateAppleEvent
function: the reply ID and the transaction ID. For the reply ID attribute, you usually specify thekAutoGenerateReturnID
constant to theAECreateAppleEvent
function. This constant ensures that the Apple Event Manager generates a unique return ID for the reply Apple event returned from the server. For the transaction ID attribute, you usually specify thekAnyTransactionID
constant, which indicates that this Apple event is not one of a series of interdependent Apple events.