0
1
I have an application installed that only appears in the menu bar (as a menu extra to the right). I would like to click one of the items contained in its menu via osascript. I've found the following code snippet:
osascript -e '
tell application "System Events"
tell process "SystemUIServer"
tell (1st menu bar item of menu bar 1 whose value of attribute "AXDescription" is "keymando menu extra")
perform action "AXPress" of menu item "Edit Config" of menu 1
end tell
end tell
end tell
Sadly, it does not work. I assume I have the name of menu extra correct: "Keymando menu extra".
Is there anyway to access those other status men items? – Jon Lorusso – 2013-04-26T13:57:33.193
THANK YOU! This just solved my HOURS long search on how to do this – Andrew Burns – 2014-04-11T16:23:47.613