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

# containerIsRangeContainerObject

Sets whether the receiver’s container is to be the container for a range specifier or a top-level object.

```
var containerIsRangeContainerObject: Bool { get set }
```

## Discussion

If the receiver’s container specifier is `nil` and `flag` is <doc://com.apple.documentation/documentation/Swift/true>, sets the receiver’s container to be the container for a range specifier. If the receiver’s container specifier is `nil` and `flag` is <doc://com.apple.documentation/documentation/Swift/false>, sets the receiver’s container to be the top-level object.

If `flag` is <doc://com.apple.documentation/documentation/Swift/true>, [`containerIsObjectBeingTested`](/documentation/Foundation/NSScriptObjectSpecifier/containerIsObjectBeingTested) should not also be invoked with an argument of <doc://com.apple.documentation/documentation/Swift/true>.

---

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)