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

# keywordForDescriptor(at:)

Returns the keyword for the descriptor at the specified (one-based) position in the receiver.

```
func keywordForDescriptor(at index: Int) -> AEKeyword
```

## Parameters

`index`

The one-based descriptor list position of the descriptor to get the keyword for.

## Return Value

The keyword (a four-character code) for the descriptor at the one-based location specified by `anIndex`, or 0 if an error occurs.

---

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)