AESizeOfNthItem(_:_:_:_:)
Gets the data size and descriptor type of the descriptor at a specified position in a descriptor list.
Declaration
func AESizeOfNthItem(_ theAEDescList: UnsafePointer<AEDescList>!, _ index: Int, _ typeCode: UnsafeMutablePointer<DescType>!, _ dataSize: UnsafeMutablePointer<Size>!) -> OSErrParameters
- theAEDescList:
A pointer to the descriptor list containing the descriptor. See Aedesclist.
- index:
A one-based positive integer indicating the position of the descriptor to get the data size for.
AESizeOfNthItemreturns 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. For a list of AppleScript’s predefined descriptor types, see 1542788 Descriptor_type_constants. See Desctype.
- dataSize:
A pointer to a size variable. On return, the length (in bytes) of the data in the descriptor.
Return Value
A result code. See Result Codes.
Discussion
Thread safe starting in OS X v10.2.