<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSAppleEventDescriptor/init(recordDescriptor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAppleEventDescriptor(im)initRecordDescriptor"
  },
  "title" : "init(recordDescriptor:)"
}
-->

# init(recordDescriptor:)

Initializes a newly allocated instance as a descriptor that is an Apple event record.

```
convenience init(recordDescriptor: ())
```

## Return Value

The initialized Apple event record, or `nil` if an error occurs.

## Discussion

An Apple event record is a descriptor whose data is a set of descriptors keyed by four-character codes. You can add information to the descriptor with methods such as [`setAttribute(_:forKeyword:)`](/documentation/Foundation/NSAppleEventDescriptor/setAttribute(_:forKeyword:)), [`setDescriptor(_:forKeyword:)`](/documentation/Foundation/NSAppleEventDescriptor/setDescriptor(_:forKeyword:)), and [`setParam(_:forKeyword:)`](/documentation/Foundation/NSAppleEventDescriptor/setParam(_:forKeyword:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)