Allows you to encapsulate calls to AEBuildParameters in your own stdarg-style wrapper routines, using techniques similar to those allowed by vsprintf.


OSStatus vAEBuildParameters(AppleEvent *event, AEBuildError *error, const char *format, va_list args);



The Apple event to which you are adding parameters. See AppleEvent.


A pointer to an AEBuildError structure where additional information about any errors that occur will be saved. This is an optional parameter and you can pass NULL if this information is not required. See AEBuildError.


An AEBuild format string describing the AEDesc parameters to be created.


A reference to a previously defined, variable argument parameter list to use with the descriptor-string. The file <stdarg.h> defines macros for declaring and using the va_list data type.

Return Value

A result code. See Result Codes.


Passing an argument list to vAEBuildParameters corresponds to passing a series of individual parameters to the AEBuildParameters function.

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 vAEBuildParameters 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.

See Also

Creating Apple Event Structures in Memory


Constructs an entire Apple event in a single call.


Provides a facility for compiling AEBuild descriptor strings into Apple event descriptors (AEDesc).


Adds additional parameters or attributes to an existing Apple event.


Provides a pretty printer facility for displaying the contents of Apple event descriptors.


Allows you to encapsulate calls to AEBuildAppleEvent in a wrapper routine.


Allows you to encapsulate calls to AEBuildDesc in your own wrapper routines.