Gets the size and descriptor type of an Apple event attribute from a descriptor of type Apple
.
SDK
- macOS 10.0+
Framework
- Core Services
Declaration
OSErr AESizeOfAttribute(const Apple Event *theAppleEvent, AEKeyword theAEKeyword, Desc Type *typeCode, Size *dataSize);
Parameters
theAppleEvent
A pointer to the Apple event to get the attribute data from. See
Apple
.Event theAEKeyword
The keyword that specifies the attribute. Some keyword constants are described in Keyword Attribute Constants. See
AEKeyword
.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. Can be
NULL
. SeeDesc
.Type dataSize
A pointer to a size variable. On return, the length, in bytes, of the data in the attribute. Can be
NULL
.
Return Value
A result code. See Result Codes.
Discussion
Thread safe starting in OS X v10.2.