AEReplaceDescData(_:_:_:_:)
Copies the specified data into the specified descriptor, replacing any previous data.
Declaration
func AEReplaceDescData(_ typeCode: DescType, _ dataPtr: UnsafeRawPointer!, _ dataSize: Size, _ theAEDesc: UnsafeMutablePointer<AEDesc>!) -> OSErrParameters
- typeCode:
Specifies the descriptor type of the data pointed to by
dataPtr. For a list of AppleScript’s predefined descriptor types, see 1542788 Descriptor_type_constants. See Desctype. - dataPtr:
A pointer to the data to store in the specified descriptor.
- dataSize:
The size, in bytes, of the data pointed to by the
dataSizeparameter. - theAEDesc:
A pointer to a descriptor. On return, contains the copied data. See Aedesc.
Return Value
A result code. See Result Codes.
Discussion
Thread safe starting in OS X v10.2.