AEPutDesc
AEPutDesc
Add descriptor record to a descriptor list long index ; position in list for added descriptor record
The parameter theAEDescList is the descriptor list to which you are adding a
descriptor record.
The index parameter is the position in the list for the descriptor record (for example, 2 specifies that it must be the second descriptor record). If there
was already a descriptor record at that position, it is replaced. If the value of
index is 0, the descriptor record is added to the end of the list.
The parameter theAEDesc is the descriptor record to be added to the list.
Result codes
noErr (0) No error
memFullErr (-108) Not enough room in heap zone
errAEWrongDataType (-1703) Wrong descriptor type
errAENotAEDesc (-1704) Not a valid descriptor record
errAEBadListItem (-1705) Operation involving a list item failed
errAEIllegalIndex (-1719) Not a valid list index