<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSPositionalSpecifier/init(position:objectSpecifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPositionalSpecifier(im)initWithPosition:objectSpecifier:"
  },
  "title" : "init(position:objectSpecifier:)"
}
-->

# init(position:objectSpecifier:)

Initializes a positional specifier with a given position relative to another given specifier.

```
init(position: NSPositionalSpecifier.InsertionPosition, objectSpecifier specifier: NSScriptObjectSpecifier)
```

## Parameters

`position`

The position for the new specifier relative to `specifier`.

`specifier`

The reference specifier.

## Return Value

An initialized positional specifier with the position specified by `position` relative to the object specified by `specifier`.

## See Also

  [Cocoa Scripting Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html#//apple_ref/doc/uid/TP40002164)



---

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)