---
title: "init(containerClassDescription:containerSpecifier:key:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsscriptobjectspecifier/init(containerclassdescription:containerspecifier:key:)"
---

# init(containerClassDescription:containerSpecifier:key:)

Returns an NSScriptObjectSpecifier object initialized with the given attributes.

## Declaration

```swift
init(containerClassDescription classDesc: NSScriptClassDescription, containerSpecifier container: NSScriptObjectSpecifier?, key property: String)
```

## Return Value

Return Value An NSScriptObjectSpecifier object initialized with container specifier specifier, key key, and the class description of the object specifier classDescription, derived from the value of the specifier’s key.

## Discussion

Discussion You should never pass nil for the value of classDescription. The receiver’s child reference is set to nil. This is the designated initializer for NSScriptObjectSpecifier.

## See Also

### Initializing an object specifier

- [init(containerSpecifier:key:)](foundation/nsscriptobjectspecifier/init(containerspecifier:key:).md)
