Question: Is there any way for one app to programmatically access and activate the contextual menu items that can be accessed when right clicking on the dock icon of another application?
App A: Non-open source Mac App Store app that currently has no AppleScript support App B: My own application, which I could write in Objective-C, AppleScript, Python, whatever...
When I right click on the dock icon for App A, I see contextual menu options for custom commands related to the function of that application. What I would like to do is to populate the contextual menu for App B with the same commands, which when accessed forward those commands to App A assuming that App A is open (even if its dock icon is hidden).
Is this sort of thing possible?