Adds a descriptor and a keyword to an Apple event as an attribute.
- macOS 10.0+
- Core Services
A result code. See Result Codes.
AEPut function takes a descriptor and a keyword and adds them to an Apple event as an attribute. If the descriptor type required for the attribute is different from the descriptor type of the descriptor, the Apple Event Manager attempts to coerce the descriptor into the required type, with one exception: the Apple Event Manager does not attempt to coerce the data for an address attribute, thereby allowing applications to use their own address types.
Thread safe starting in OS X v10.2.