---
title: keySpecifier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsmovecommand/keyspecifier
---

# keySpecifier

Returns a specifier for the object or objects to be moved.

## Declaration

```swift
var keySpecifier: NSScriptObjectSpecifier { get }
```

## Return Value

Return Value A specifier for the object or objects to be moved.

## Discussion

Discussion Note that this specifier may be different than the specifier set by setReceiversSpecifier(_:), which sets the container specifier. For example, for a command such as move the third circle to the location of the first circle, the receiver might identify a document (which has a list of graphics), while the key specifier identifies the particular graphic to be moved.

## See Also

### Related Documentation

- [Cocoa Scripting Guide](apple-archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html.md)

### Working with specifiers

- [setReceiversSpecifier(_:)](foundation/nsmovecommand/setreceiversspecifier(_:).md)
