objective c - How do I inspect and activate other application’s menu? -


is possible inspect main application menu of running application , execute commands menu? example retrieve whole main menu hierarchy of safari , execute file → new tab command (by name, not using keyboard shortcut). i’m interested in objective-c solution.

one way using cocoa accessibility api

for example,

nsaccessibilitypickaction selects object, such menu item


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -