---
title: endSpecifier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsrangespecifier/endspecifier
---

# endSpecifier

Sets the object specifier representing the last object of the range to a given object.

## Declaration

```swift
var endSpecifier: NSScriptObjectSpecifier? { get set }
```

## Parameters

- `endSpec`: The object specifier representing the last object of the range.

## See Also

### Accessing a range specifier

- [startSpecifier](foundation/nsrangespecifier/startspecifier.md)
