---
title: "paramDescriptor(forKeyword:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsappleeventdescriptor/paramdescriptor(forkeyword:)"
---

# paramDescriptor(forKeyword:)

Returns a descriptor for the receiver’s Apple event parameter identified by the specified keyword.

## Declaration

```swift
func paramDescriptor(forKeyword keyword: AEKeyword) -> NSAppleEventDescriptor?
```

## Parameters

- `keyword`: A keyword (a four-character code) that identifies the parameter descriptor to obtain.

## Return Value

Return Value A descriptor for the specified keyword, or nil if an error occurs.

## Discussion

Discussion The receiver must be an Apple event.

## See Also

### Working With Apple Event Descriptors

- [attributeDescriptor(forKeyword:)](foundation/nsappleeventdescriptor/attributedescriptor(forkeyword:).md)
- [eventClass](foundation/nsappleeventdescriptor/eventclass.md)
- [eventID](foundation/nsappleeventdescriptor/eventid.md)
- [removeParamDescriptor(withKeyword:)](foundation/nsappleeventdescriptor/removeparamdescriptor(withkeyword:).md)
- [returnID](foundation/nsappleeventdescriptor/returnid.md)
- [setAttribute(_:forKeyword:)](foundation/nsappleeventdescriptor/setattribute(_:forkeyword:).md)
- [setParam(_:forKeyword:)](foundation/nsappleeventdescriptor/setparam(_:forkeyword:).md)
- [transactionID](foundation/nsappleeventdescriptor/transactionid.md)
