Carbon


AESizeOfAttribute

Header: AEDataModel.h Carbon status: Supported

Gets the size and descriptor type of an Apple event attribute from a record of type AppleEvent.

OSErr AESizeOfAttribute (
    const AppleEvent *theAppleEvent, 
    AEKeyword theAEKeyword, 
    DescType *typeCode, 
    Size *dataSize
);
Parameter descriptions
theAppleEvent

A pointer to the Apple event to get the attribute data from.

theAEKeyword

The keyword that specifies the attribute. Some keyword constants are described in “Keyword Attribute Constants”.

typeCode

A pointer to a descriptor type. On return, specifies the descriptor type of the attribute. For a list of AppleScript’s predefined descriptor types, see “Descriptor Type Constants”.

dataSize

A pointer to a size variable. On return, the length, in bytes, of the data in the attribute.

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)