Allows you to encapsulate calls to
AEBuild in a wrapper routine.
- macOS 10.0+
- Core Services
The event class for the resulting Apple event. See
The event id for the resulting Apple event. See
The address type for the addressing information described in the next two parameters: usually one of
Process Serial Number
Kernel Process ID
A pointer to the address information.
The number of bytes pointed to by the
The return ID for the created Apple event. If you pass a value of
k, the Apple Event Manager assigns the created Apple event a return ID that is unique to the current session. If you pass any other value, the Apple Event Manager assigns that value for the ID.
Auto Generate Return ID
The transaction ID for this Apple event. A transaction is a sequence of Apple events that are sent back and forth between the client and server applications, beginning with the client’s initial request for a service. All Apple events that are part of a transaction must have the same transaction ID. You can specify the
kconstant if the Apple event is not one of a series of interdependent Apple events.
Any Transaction ID
A pointer to a descriptor where the resulting descriptor should be stored. See
Applefor a description of the data type.
A pointer to an
AEBuildstructure where additional information about any errors that occur will be saved. This is an optional parameter and you can pass
NULLif this information is not required. See
AEBuildfor the syntax error codes that can be returned in this structure.
An AEBuild format string describing the AppleEvent record to be created. The format of these strings is described in Technical Note TN2106, AEBuild*, AEPrint*, and Friends.
A variable array of arguments to be substituted into the
paramsformat string. See the ANSI C Interfaces documentation for a description of the
A result code. See Result Codes.
Passing an argument list to
v corresponds to passing a series of individual parameters to the
This function and related “AEBuild” routines provide a very simple translation service for converting specially formatted strings into complex Apple event descriptors. Normally, creating complex Apple event descriptors requires a large number of calls to Apple event Manager routines to build up the descriptor piece by piece. The
v function and related routines allow you to consolidate all of the calls required to construct a complex Apple event descriptor into a single system call that creates the desired structure as directed by a format string that you provide.