Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSAppleEventManagerMBS class.

NSAppleEventManagerMBS.appleEventForSuspensionID(id as NSAppleEventManagerSuspensionIDMBS) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Given a suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the descriptor for the event whose handling was suspended.

NSAppleEventManagerMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The constructor.

NSAppleEventManagerMBS.currentAppleEvent as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the descriptor for currentAppleEvent if an Apple event is being handled on the current thread.

An Apple event is being handled on the current thread if a handler that was registered with setEventHandler 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.

NSAppleEventManagerMBS.currentReplyAppleEvent as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the corresponding reply event descriptor if an Apple event is being handled on the current thread.

An Apple event is being handled on the current thread if currentAppleEvent does not return nil. Returns nil otherwise. This descriptor, including any mutations, will be returned to the sender of the current event when all handling of the event has been completed, 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 not returned to the sender of the current event.

NSAppleEventManagerMBS.removeEventHandlerForEventClass(eventClass as string, eventID as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
If an Apple event handler has been registered for the event specified by eventClass and eventID, removes it.

NSAppleEventManagerMBS.replyAppleEventForSuspensionID(id as NSAppleEventManagerSuspensionIDMBS) as NSAppleEventDescriptorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the corresponding reply event descriptor.

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. replyAppleEventForSuspensionID may be invoked in any thread, not just the one in which the corresponding invocation of suspendCurrentAppleEvent occurred.

NSAppleEventManagerMBS.resumeWithSuspensionID(id as NSAppleEventManagerSuspensionIDMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Given a suspensionID returned by an invocation of suspendCurrentAppleEvent, signal that handling of the suspended event may now continue.

This may result in the immediate sending of the reply event to the sender of the suspended event, if the sender has requested a reply. If suspensionID has been used in a previous invocation of setCurrentAppleEventAndReplyEventWithSuspensionID the effects of that invocation are completely undone. Redundant invocations of resumeWithSuspensionID are ignored. Subsequent invocations of other NSAppleEventManager methods using the same suspension ID are invalid. resumeWithSuspensionID may be invoked in any thread, not just the one in which the corresponding invocation of suspendCurrentAppleEvent occurred.

NSAppleEventManagerMBS.setCurrentAppleEventAndReplyEventWithSuspensionID(id as NSAppleEventManagerSuspensionIDMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, sets the values that will be returned by subsequent invocations of currentAppleEvent and currentReplyAppleEvent to be the event whose handling was suspended and its corresponding reply event, respectively.

Redundant invocations of setCurrentAppleEventAndReplyEventWithSuspensionID are ignored.

NSAppleEventManagerMBS.setEventHandler(handler as NSAppleEventHandlerMBS, eventClass as string, eventID as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Registers the Apple event handler specified by handler for the event specified by eventClass and eventID.

NSAppleEventManagerMBS.suspendCurrentAppleEvent as NSAppleEventManagerSuspensionIDMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Apple Script MBS MacCocoa Plugin 12.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Suspends the handling of the current event and returns an ID that must be used to resume the handling of the event if an Apple event is being handled on the current thread.

An Apple event is being handled on the current thread if currentAppleEvent does not return nil. Returns zero otherwise. The suspended event is no longer the current event after this method returns.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...