---
title: commandName
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptcommanddescription/commandname
---

# commandName

Returns the name of the command.

## Declaration

```swift
var commandName: String { get }
```

## Return Value

Return Value The command name as it appears in the application’s scriptability information; may be different from what is displayed to the scripter.

## See Also

### Getting Basic Information About the Command

- [appleEventClassCode](foundation/nsscriptcommanddescription/appleeventclasscode.md)
- [appleEventCode](foundation/nsscriptcommanddescription/appleeventcode.md)
- [commandClassName](foundation/nsscriptcommanddescription/commandclassname.md)
- [suiteName](foundation/nsscriptcommanddescription/suitename.md)
