AESizeOfAttribute
AESizeOfAttribute Get size and descriptor type of Apple Event
attribute
#include <AppleEvents.h> Apple Event Manager
OSErr AESizeOfAttribute( theAppleEvent, theAEKeyword, typeCode,
dataSize );
AppleEvent * theAppleEvent ; Apple event containing the attribute
AEKeyword theAEkeyword ; Apple Event keyword for attribute
DescType * typeCode ; descriptor type of attribute
Size * dataSize ; size of data in attribute
returns Error Code; 0 = no error
The AESizeOfAttribute function returns the size and descriptor type of an
Apple event attribute.
The parameter theAppleEvent is the Apple event containing the attribute.
The parameter theAEKeyword is the keyword that specifies the attribute.
The function returns the descriptor type of the attribute in the typeCode
parameter.
The function returns the length, in bytes, of the data contained in the
attribute in the dataSize parameter.
Result codes
noErr (0) No error
errAEDescNotFound (-1701) Descriptor record was not found
errAENotAEDesc (-1704) Not a valid descriptor record
errAEReplyNotArrived (-1718) Reply has not yet arrived