-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open a menu in the application menu bar #2420
Comments
Does this do what you want? |
No, that doesn't work unfortunately. Here's an example - I want the code below to reveal the File menu in the frontmost app when I press F12:
I think this is the same quirk that I ran into with JXA (see here) where a simulated click on an item with no action doesn't actually do anything. Let me know if I'm missing something. I'm on High Sierra 10.13.6 for what it's worth. edit: that code works fine for me if I change the parameter list to a menu item that does have an action, like |
Ummm, that's strange - you're code is working fine for me with Safari, but I'm on Mojave 10.14.6. |
As a workaround, you could also use |
I'm trying to bind a hotkey to open the File menu. I'm coming from Keyboard Maestro, where there's a "Select or Show Menu Item" function that can just display a menu, and from there I can start typing the name of a menu item to select it. It doesn't seem like there's a way to do this in vanilla Hammerspoon, although I could be wrong - maybe there's an osascript-based solution?
The text was updated successfully, but these errors were encountered: