Important: The information in this document is obsolete and should not be used for new development.
Creating Object Specifier Records
The Apple Event Manager provides five functions that you can use to create some of the components of an object specifier record or to assemble an object specifier record:
Instead of using these functions, you can create the corresponding descriptor records yourself using the
- The
CreateOffsetDescriptor
function creates an offset descriptor record, which specifies the position of an element in relation to the beginning or end of its container.- The
CreateCompDescriptor
function creates a comparison descriptor record, which specifies how to compare one or more Apple event objects with either another Apple event object or a descriptor record.- The
CreateLogicalDescriptor
function creates a logical descriptor record, which specifies a logical operator and one or more logical terms for the Apple Event Manager to evaluate.- The
CreateRangeDescriptor
function creates a range descriptor record, which specifies a series of consecutive elements in the same container.- The
CreateObjSpecifier
function assembles an object specifier record, which identifies one or more Apple event objects, from other descriptor records.
AECreateDesc
function, add them to an AE record using other Apple Event Manager routines, and coerce the AE record to a descriptor record of typetypeObjectSpecifier
. However, in most cases it is easier to use the functions listed in this section.All of these functions except for
CreateOffsetDescriptor
include adisposeInputs
parameter. If the value of this parameter isTRUE
, the function automatically disposes of any descriptor records you have provided as parameters to the function. If the value isFALSE
, the application must dispose of the records itself. A value ofFALSE
may be more efficient for some applications because it allows them to reuse descriptor records.For more information about these functions and examples of their use, see "Creating Object Specifier Records," which begins on page 6-64.
Subtopics
- CreateOffsetDescriptor
- CreateCompDescriptor
- CreateLogicalDescriptor
- CreateRangeDescriptor
- CreateObjSpecifier