AEPutAttributePtr(_:_:_:_:_:)
Adds a pointer to data, a descriptor type, and a keyword to an Apple event as an attribute.
Declaration
func AEPutAttributePtr(_ theAppleEvent: UnsafeMutablePointer<AppleEvent>!, _ theAEKeyword: AEKeyword, _ typeCode: DescType, _ dataPtr: UnsafeRawPointer!, _ dataSize: Size) -> OSErrParameters
- theAppleEvent:
A pointer to the Apple event to add an attribute to. See the Appleevent data type.
- theAEKeyword:
The keyword for the attribute to add. If the Apple event already includes an attribute with this keyword, the attribute is replaced.
Some keyword constants are described in 1542920 Keyword_attribute_constants.
See Aekeyword.
- typeCode:
The descriptor type for the attribute to add. For a list of AppleScript’s predefined descriptor types, see 1542788 Descriptor_type_constants. See Desctype.
- dataPtr:
A pointer to the data for the attribute to add.
- dataSize:
The length, in bytes, of the data for the attribute to add.
Return Value
A result code. See Result Codes.
Discussion
Thread safe starting in OS X v10.2.