---
title: createCommandInstance()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsscriptcommanddescription/createcommandinstance()
---

# createCommandInstance()

Creates and returns an instance of the command object described by the receiver.

## Declaration

```swift
func createCommandInstance() -> NSScriptCommand
```

## Return Value

Return Value The command object, instantiated from NSScriptCommand or a subclass.

## See Also

### Creating Commands

- [createCommandInstance(with:)](foundation/nsscriptcommanddescription/createcommandinstance(with:).md)
