---
title: "commandDescription(withAppleEventClass:andAppleEventCode:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsscriptsuiteregistry/commanddescription(withappleeventclass:andappleeventcode:)"
---

# commandDescription(withAppleEventClass:andAppleEventCode:)

Returns the command description identified by a suite’s four-character Apple event code of the class (eventClass) and the four-character Apple event code of the command (commandCode).

## Declaration

```swift
func commandDescription(withAppleEventClass appleEventClassCode: FourCharCode, andAppleEventCode appleEventIDCode: FourCharCode) -> NSScriptCommandDescription?
```

## See Also

### Getting and Registering Command Descriptions

- [commandDescriptions(inSuite:)](foundation/nsscriptsuiteregistry/commanddescriptions(insuite:).md)
- [register(_:)](foundation/nsscriptsuiteregistry/register(_:)-5mq91.md)
