currentAppleEvent
Returns the descriptor for currentAppleEvent if an Apple event is being handled on the current thread.
Declaration
var currentAppleEvent: NSAppleEventDescriptor? { get }Discussion
An Apple event is being handled on the current thread if a handler that was registered with setEventHandler(_:andSelector:forEventClass:andEventID:) is being messaged at this instant or setCurrentAppleEventAndReplyEventWithSuspensionID(_:) has just been invoked. Returns nil otherwise. The effects of mutating or retaining the returned descriptor are undefined, although it may be copied.