Updated
How to Run a Script from the Menu Bar on Mac
By Sindre Sorhus, who makes the Super Menu app
With Super Menu
Click the script in the menu to run it. Super Menu runs AppleScripts, Automator workflows, and shell scripts, like .sh, .py, and .rb files. A shell script must be executable (chmod +x), and its first line must name the interpreter, like #!/bin/sh.
Tips
- An argument can ask for text when you run the script, like
{input name="Project"}, or use the copied text, like{clipboard}. All placeholders. - To run a script on a file, turn on “Show in file submenus” in the settings of the script. The script is then in the “Run Script” submenu of the files in the menu.
- To add a folder of scripts, choose “Script Folder…” in place of “Scripts…”. Each script in the folder runs when you click it.
- Hold Option while you click a script to open it in its editor.
- A script does not show what it prints. To see a result, show it in an alert, like
osascript -e 'display alert "Done"'.
Super Menu needs macOS 27 or later. More about scripts.
Get Super Menu
Your files, folders, apps, links, shortcuts, and scripts in one menu
$4, one-time purchase
- Requires
- macOS 27 or later
- Privacy
- No data collected
- Family Sharing
- Yes
- Updated
- November 2026
Without an app
macOS has a Script menu, which is off at first:
- Open the Script Editor app, choose and click “General”.
- Turn on “Show Script menu in menu bar”. Apple
- Click the Script menu in the menu bar, and choose
- Put your script in this folder (
~/Library/Scripts). It now shows in the Script menu.
The Script menu runs AppleScripts, Automator workflows, and shell scripts. It is free and good for a few scripts. It cannot give arguments to a script or ask for input, and it shows only the scripts in its folders. Super Menu runs scripts from any folder, asks for input, and has your files, apps, and links in the same menu.
