<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSScriptClassDescription/init(suiteName:className:dictionary:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScriptClassDescription(im)initWithSuiteName:className:dictionary:"
  },
  "title" : "init(suiteName:className:dictionary:)"
}
-->

# init(suiteName:className:dictionary:)

Initializes and returns a newly allocated instance of `NSScriptClassDescription`.

```
init?(suiteName: String, className: String, dictionary classDeclaration: [AnyHashable : Any]?)
```

## Parameters

`suiteName`

The name of the suite (in the application’s scriptability information) that the class belongs to. For example, `"AppName Suite"`.

`className`

The name of the class that this instance describes.

`classDeclaration`

A class declaration dictionary of the sort that is valid in script suite property list files. This dictionary provides information about the class such as its attributes and relationships.

## Return Value

The initialized instance. Returns `nil` if the event code value for the class description itself is missing or is not an `NSString`. Also returns `nil` if the superclass name or any of the subdictionaries of descriptions are not of the right type.

## Discussion

This method registers `self` with the application’s global instance of [`NSScriptSuiteRegistry`](/documentation/Foundation/NSScriptSuiteRegistry).

## See Also

  [Cocoa Scripting Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/SAppsIntro.html#//apple_ref/doc/uid/TP40002164)

  [Key-Value Coding Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/KeyValueCoding/index.html#//apple_ref/doc/uid/10000107i)



---

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)