<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSMoveCommand/setReceiversSpecifier(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMoveCommand(im)setReceiversSpecifier:"
  },
  "title" : "setReceiversSpecifier(_:)"
}
-->

# setReceiversSpecifier(_:)

Sets the receiver’s object specifier.

```
func setReceiversSpecifier(_ receiversRef: NSScriptObjectSpecifier?)
```

## Parameters

`receiversRef`

The receiver’s object specifier.

## Discussion

When evaluated, `receiversRef` indicates the receiver or receivers of the `move` AppleScript command.

This method overrides [`receiversSpecifier`](/documentation/Foundation/NSScriptCommand/receiversSpecifier) in [`NSScriptCommand`](/documentation/Foundation/NSScriptCommand). It performs the same function as the overridden method, with a critical difference: it causes the container specifier part of the passed-in object specifier to become the receiver specifier of the command, and the key part of the passed-in object specifier to become the key specifier. If, for example, `receiversRef` is a specifier for `the third paragraph of the first document`, the receiver specifier is `the first document` while the key specifier is `the third paragraph`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)