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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.