---
title: "keywordForDescriptor(at:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsappleeventdescriptor/keywordfordescriptor(at:)"
---

# keywordForDescriptor(at:)

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

## Declaration

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

## Parameters

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

## Return Value

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.

## See Also

### Working With Record Descriptors

- [forKeyword(_:)](foundation/nsappleeventdescriptor/forkeyword(_:).md)
- [remove(withKeyword:)](foundation/nsappleeventdescriptor/remove(withkeyword:).md)
- [setDescriptor(_:forKeyword:)](foundation/nsappleeventdescriptor/setdescriptor(_:forkeyword:).md)
