Contents

setAttribute(_:forKeyword:)

Adds a descriptor to the receiver as an attribute identified by the specified keyword.

Declaration

func setAttribute(_ descriptor: NSAppleEventDescriptor, forKeyword keyword: AEKeyword)

Parameters

  • descriptor:

    The attribute descriptor to add to the receiver.

  • keyword:

    A keyword (a four-character code) that identifies the attribute descriptor to add. If a descriptor with that keyword already exists in the receiver, it is replaced.

Discussion

The receiver must be an Apple event. Currently provides no indication if an error occurs.

See Also

Working With Apple Event Descriptors