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

# keySpecifier

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

## Declaration

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

## Return Value

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

## Discussion

Discussion Note that this may be different than the specifier or specifiers set by setReceiversSpecifier(_:).

## See Also

### Related Documentation

- [Cocoa Scripting Guide](apple-archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html.md)
- [Key-Value Coding Programming Guide](apple-archive/documentation/Cocoa/Conceptual/KeyValueCoding.md)

### Working with specifiers

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