Skip to Content
Sindre Sorhus
Back to Super Menu

Updated

How to Run a Script from the Menu Bar on Mac

By Sindre Sorhus, who makes the Super Menu app

With Super Menu

  1. Open Super Menu, and click its icon in the menu bar.
  2. Open the “…” submenu at the bottom of the menu, and choose “Manage Menu…”.
  3. Click the plus button in the toolbar, choose “Scripts…”, and select the script.
  4. Optional: Type the arguments, one on each line. Then click “Add”.
  5. The first time, click “Allow” to give Super Menu access to its Scripts folder.

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

Download on the App Store

$4, one-time purchase

Requires
macOS 27 or later
Family Sharing
Yes
Updated
November 2026

More about Super Menu

Without an app

macOS has a Script menu, which is off at first:

  1. Open the Script Editor app, choose “Script Editor › Settings”, and click “General”.
  2. Turn on “Show Script menu in menu bar”. Apple
  3. Click the Script menu in the menu bar, and choose “Open Scripts Folder › Open User Scripts Folder”.
  4. 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.