---
title: "replyAppleEvent(forSuspensionID:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsappleeventmanager/replyappleevent(forsuspensionid:)"
---

# replyAppleEvent(forSuspensionID:)

Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent(), returns the corresponding reply event descriptor.

## Declaration

```swift
func replyAppleEvent(forSuspensionID suspensionID: NSAppleEventManager.SuspensionID) -> NSAppleEventDescriptor
```

## Discussion

Discussion This descriptor, including any mutations, will be returned to the sender of the suspended event when handling of the event is resumed, if the sender has requested a reply. The effects of retaining the descriptor are undefined; it may be copied, but mutations of the copy are returned to the sender of the suspended event. replyAppleEvent(forSuspensionID:) may be invoked in any thread, not just the one in which the corresponding invocation of suspendCurrentAppleEvent() occurred.

## See Also

### Suspending and resuming Apple events

- [appleEvent(forSuspensionID:)](foundation/nsappleeventmanager/appleevent(forsuspensionid:).md)
- [currentAppleEvent](foundation/nsappleeventmanager/currentappleevent.md)
- [currentReplyAppleEvent](foundation/nsappleeventmanager/currentreplyappleevent.md)
- [resume(withSuspensionID:)](foundation/nsappleeventmanager/resume(withsuspensionid:).md)
- [setCurrentAppleEventAndReplyEventWithSuspensionID(_:)](foundation/nsappleeventmanager/setcurrentappleeventandreplyeventwithsuspensionid(_:).md)
- [suspendCurrentAppleEvent()](foundation/nsappleeventmanager/suspendcurrentappleevent().md)
- [NSAppleEventManager.SuspensionID](foundation/nsappleeventmanager/suspensionid.md)
