---
title: eventID
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsappleeventdescriptor/eventid
---

# eventID

The event ID for the receiver.

## Declaration

```swift
var eventID: AEEventID { get }
```

## Discussion

Discussion The event ID (a four-character code) for the receiver, or 0 if an error occurs. The receiver must be an Apple event. An Apple event is identified by its event class and event ID, a pair of four-character codes stored as 32-bit integers. For example, the open Apple event from the Standard suite has the four-character code 'odoc' (defined as the constant kAEOpen in AE.framework, a subframework of ApplicationServices.framework).

## See Also

### Working With Apple Event Descriptors

- [attributeDescriptor(forKeyword:)](foundation/nsappleeventdescriptor/attributedescriptor(forkeyword:).md)
- [eventClass](foundation/nsappleeventdescriptor/eventclass.md)
- [paramDescriptor(forKeyword:)](foundation/nsappleeventdescriptor/paramdescriptor(forkeyword:).md)
- [removeParamDescriptor(withKeyword:)](foundation/nsappleeventdescriptor/removeparamdescriptor(withkeyword:).md)
- [returnID](foundation/nsappleeventdescriptor/returnid.md)
- [setAttribute(_:forKeyword:)](foundation/nsappleeventdescriptor/setattribute(_:forkeyword:).md)
- [setParam(_:forKeyword:)](foundation/nsappleeventdescriptor/setparam(_:forkeyword:).md)
- [transactionID](foundation/nsappleeventdescriptor/transactionid.md)
