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

# objectsByEvaluatingSpecifier

Returns the actual object represented by the nested series of object specifiers.

```
var objectsByEvaluatingSpecifier: Any? { get }
```

## Return Value

The actual object represented by the nested series of object specifiers.

## Discussion

Recursively obtains the next container in a nested series of object specifiers until it reaches the top-level container specifier (which is either an [`NSWhoseSpecifier`](/documentation/Foundation/NSWhoseSpecifier) or the application object), after which it begins evaluating each object specifier ([`objectsByEvaluating(withContainers:)`](/documentation/Foundation/NSScriptObjectSpecifier/objectsByEvaluating(withContainers:))) going in the opposite direction (top-level to innermost) as it unwinds from the stack. Returns the actual object represented by the nested series of object specifiers. Returns `nil` if a container specifier could not be evaluated or if no top-level container specifier could be found. Thus `nil` can be a valid value or can indicate an error; you can use [`evaluationErrorNumber`](/documentation/Foundation/NSScriptObjectSpecifier/evaluationErrorNumber) to determine if and which error occurred and [`evaluationError`](/documentation/Foundation/NSScriptObjectSpecifier/evaluationError) to find the container specifier responsible for the error. In the normal course of command processing, this method is invoked by an `NSScriptCommand` object’s [`evaluatedArguments`](/documentation/Foundation/NSScriptCommand/evaluatedArguments) and [`evaluatedReceivers`](/documentation/Foundation/NSScriptCommand/evaluatedReceivers) methods, which take as message receiver the innermost object specifier.

---

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)