---
title: appleEventCode
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsscriptclassdescription/appleeventcode
---

# appleEventCode

Returns the Apple event code associated with the receiver’s class.

## Declaration

```swift
var appleEventCode: FourCharCode { get }
```

## Return Value

Return Value The Apple event code associated with the receiver’s class. This is the primary code used to identify the class in Apple events.

## See Also

### Getting and comparing Apple event codes

- [appleEventCode(forKey:)](foundation/nsscriptclassdescription/appleeventcode(forkey:).md)
- [matchesAppleEventCode(_:)](foundation/nsscriptclassdescription/matchesappleeventcode(_:).md)
