---
title: "classDescription(withAppleEventCode:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsscriptsuiteregistry/classdescription(withappleeventcode:)"
---

# classDescription(withAppleEventCode:)

Returns the class description associated with the given four-character Apple event code, code.

## Declaration

```swift
func classDescription(withAppleEventCode appleEventCode: FourCharCode) -> NSScriptClassDescription?
```

## Discussion

Discussion Overriding behavior is important here. Multiple classes can have the same code if the classes have an uninterrupted linear inheritance from one another. For example, if class B is a subclass of A and class C is a subclass of B, and all three classes have the same four-character Apple event code, then this method returns the class description for class C.

## See Also

### Getting and Registering Class Descriptions

- [classDescriptions(inSuite:)](foundation/nsscriptsuiteregistry/classdescriptions(insuite:).md)
- [register(_:)](foundation/nsscriptsuiteregistry/register(_:)-9aplw.md)
