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

# keySpecifier

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

## Declaration

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

## Return Value

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

## Discussion

Discussion For example, the specifier may indicate that a document’s third rectangle should be cloned. The returned specifier is valid only in the context of the NSCloneCommand object; for example, if you send the specifier a container message, the result is nil.

## See Also

### Related Documentation

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

### Working with specifiers

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