---
title: "init(position:objectSpecifier:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nspositionalspecifier/init(position:objectspecifier:)"
---

# init(position:objectSpecifier:)

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

## Declaration

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

## Parameters

- `position`: The position for the new specifier relative to specifier.
- `specifier`: The reference specifier.

## Return Value

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

## See Also

### Related Documentation

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