AESizeOfAttribute
You can use the AESizeOfAttribute function to get the size and descriptor type of an Apple event attribute.
FUNCTION AESizeOfAttribute (theAppleEvent: AppleEvent;
theAEKeyword: AEKeyword;
VAR typeCode: DescType;
VAR dataSize: Size): OSErr;
theAppleEvent
- The Apple event containing the desired attribute.
theAEKeyword
- The keyword that specifies the attribute.
typeCode
- The descriptor type of the attribute.
dataSize
- The length, in bytes, of the data in the attribute.
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 |