Carbon


AESizeOfNthItem

Header: AEDataModel.h Carbon status: Supported

Gets the data size and descriptor type of the descriptor record at a specified position in a descriptor list.

OSErr AESizeOfNthItem (
    const AEDescList *theAEDescList, 
    SInt32 index, 
    DescType *typeCode, 
    Size *dataSize
);
theAEDescList

A pointer to the descriptor list containing the descriptor record.

index

A one-based positive integer indicating the position of the descriptor record to get the data size for. AESizeOfNthItem returns an error if you pass zero, a negative number, or a value that is out of range.

typeCode

A pointer to a descriptor type. On return, specifies the descriptor type of the descriptor record. 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 descriptor record.

function result

A result code.

AVAILABILITY

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)