Is it possible to create a hotkey (or other trigger) that opens a menubar app? I don't mean launch. I mean, cause the menubar app to display its contents.
Let's say, for example, I wanted to create a hotkey to open a menubar weather app. Can this be done?
The app I'm trying to open is open source on Github, so I'm open to coding the trigger into the app if need be, but I have no clue how to do that, which means I'd prefer a simpler solution.
I'm using Mountain Lion.
Best Answer
You can assign a shortcut to a script like this:
There is a bug where clicking some status menu items causes scripts to be blocked for about 5 seconds. One workaround is to terminate System Events after the click command:
The first two lines are needed when System Events is not already running. System Events supports sudden termination, so it should be safe to even send it a KILL signal.