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

# appleEventCode

Returns the four-character code for the Apple event ID of the receiver’s command.

## Declaration

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

## Return Value

Return Value The code for the event ID of the receiver’s command.

## Discussion

Discussion This value of the event ID returned by this method, together with the event class code returned by appleEventClassCode, specifies the necessary information for identifying and dispatching an Apple event.

## See Also

### Related Documentation

- [appleEventCodeForReturnType](foundation/nsscriptcommanddescription/appleeventcodeforreturntype.md)
- [appleEventCodeForArgument(withName:)](foundation/nsscriptcommanddescription/appleeventcodeforargument(withname:).md)

### Getting Basic Information About the Command

- [appleEventClassCode](foundation/nsscriptcommanddescription/appleeventclasscode.md)
- [commandClassName](foundation/nsscriptcommanddescription/commandclassname.md)
- [commandName](foundation/nsscriptcommanddescription/commandname.md)
- [suiteName](foundation/nsscriptcommanddescription/suitename.md)
