Back to Shortcutie
Updated
How to Click a Menu Item of Any App with Shortcuts on Mac
By Sindre Sorhus, who makes the Shortcutie app
With Shortcutie
- Install Shortcutie, and open it once. It asks for Accessibility access, which it needs to click menu items.
- In your shortcut, add the “Trigger Menu Bar Item” action of Shortcutie.
- Type the path of the menu item, like
Apple > System SettingsorView > Show Sidebar. The titles must match exactly, also in uppercase and lowercase, but the “…” at the end is optional. - Optional: expand the action, and choose the app in “App”. When it is empty, the action uses the app in front.
If the app does not react, turn on “Activate App”, so the app comes to the front first.
Tips
- For an item that changes its title, type both titles with
||, likeEdit > Start Dictation || Stop Dictation. - For a title that changes, use
*, likeFile > Export*for all items that start with “Export”. - When an item is not always there, turn on “Ignore Errors”, so the shortcut does not stop.
- The path of BetterTouchTool works too, like
File;Save As. - For the menu that shows when you right-click, use the “Trigger Context Menu Item” action. It uses the menu at the mouse pointer.
- To press the keyboard shortcut of an item instead, use the “Press Keyboard Shortcut” action. Guide
Get Shortcutie
Power up the Shortcuts app on Mac
$10, one-time purchase, plus tax where applicable
- Requires
- macOS 26 or later
- Privacy
- No personal data collected
- License
- All your Macs
- Updated
- September 2026
- Gumroad rating
- 4.9/5 (27 ratings)
Without an app
The “Run AppleScript” action of Shortcuts can click a menu item with System Events:
- In your shortcut, add the “Run AppleScript” action.
- Replace the text in the action with a script like the one below, with the name of your app, menu, and item.
- If the shortcut cannot run the script, choose click “Advanced”, and turn on “Allow Running Scripts”.
- Run the shortcut. The first time, macOS asks for Accessibility access. Allow it in “System Settings Privacy & Security Accessibility”.
tell application "System Events"
tell process "Safari"
set frontmost to true
click menu item "Pin Tab" of menu "Window" of menu bar 1
end tell
end tell
This is the example of Apple’s guide to scripting the user interface. An item in a submenu needs a longer path, and the title must be exact, also its “…”. Shortcutie finds the item from a short path.
