---
title: "supportsCommand(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsscriptclassdescription/supportscommand(_:)"
---

# supportsCommand(_:)

Returns a Boolean value indicating whether the receiver or any superclass supports the specified command.

## Declaration

```swift
func supportsCommand(_ commandDescription: NSScriptCommandDescription) -> Bool
```

## Parameters

- `commandDescription`: A description for a script command, such as duplicate, make, or move. Encapsulates the scriptability information for that command, such as its Objective-C selector, its argument names and types, and its return type (if any).

## Return Value

Return Value true if an the receiver or the instance of NSScriptClassDescription of any superclass of the receiver’s class lists the command described by commandDesc among its supported commands; otherwise, false.

## See Also

### Getting command information

- [selector(forCommand:)](foundation/nsscriptclassdescription/selector(forcommand:).md)
