Important: The information in this document is obsolete and should not be used for new development.
Creating an Apple Event Record
Use theAECreateAppleEventfunction to create an Apple event record. Using the arguments you pass to theAECreateAppleEventfunction, 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
AECreateAppleEventfunction: the reply ID and the transaction ID. For the reply ID attribute, you usually specify thekAutoGenerateReturnIDconstant to theAECreateAppleEventfunction. 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 thekAnyTransactionIDconstant, which indicates that this Apple event is not one of a series of interdependent Apple events.