AEPutKeyDesc
AEPutKeyDesc Create keyword-specified descriptor record
#include <AppleEvents.h> Apple Event Manager
OSErr AEPutKeyDesc( theAERecord, theAEKeyword, theAEDesc );
AERecord * theAERecord ; AE record to which to add a keyword- specified
descriptor record
AEKeyword theAEkeyword ; Apple Event keyword
AEDesc * theAEDesc ; descriptor record
returns Error Code; 0 = no error
The AEPutKeyDesc function takes a descriptor record and a keyword and
converts them into a keyword-specified descriptor record that it adds to an
AE record.
The parameter theAERecord is the AE record to which to add the
keyword-specified descriptor record.
The parameter theAEKeyword is the keyword specifying the descriptor
record. If there was already a keyword-specified descriptor record with this
keyword, it is replaced.
The parameter theAEDesc is the descriptor record for the keyword- specified
descriptor record.
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