---
title: returnID
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsappleeventdescriptor/returnid
---

# returnID

The receiver’s return ID (the ID for a reply Apple event).

## Declaration

```swift
var returnID: AEReturnID { get }
```

## Discussion

Discussion The receiver’s return ID (an integer value), or 0 if an error occurs. The receiver must be an Apple event.

## See Also

### Working With Apple Event Descriptors

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