![]() |
AECoerceDesc |
||||
Header: | AEDataModel.h | Carbon status: | Supported | |
Coerces the data in a descriptor record to another descriptor type and creates a descriptor record containing the newly coerced data.
OSErr AECoerceDesc ( const AEDesc *theAEDesc, DescType toType, AEDesc *result );
A pointer to the descriptor record containing the data to coerce.
The desired descriptor type of the resulting descriptor record. For a list of AppleScripts predefined descriptor types, see
A pointer to a descriptor record. On successful return, a descriptor containing the coerced data and matching the descriptor type specified in toType. On error, a null descriptor. Your application should always call the AEDisposeDesc function to dispose of the resulting descriptor record after it has finished using it.
A result code.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. (Last Updated 5/8/2000)