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

# keySpecifier

Returns a specifier that identifies the attribute or relationship that is to be set for the receiver of the set AppleScript command.

## Declaration

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

## Return Value

Return Value A specifier that identifies the attribute or relationship that is to be set for the receiver of the set AppleScript command.

## See Also

### Related Documentation

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

### Working with specifiers

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