The Script Menu

The system-wide Script Menu is an invaluable tool for automation enthusiasts. It provides quick access to favorite automation tools, stored and displayed in an organized manner. And this utility is versatile, as it is able to execute automation files saved in any of these formats:

  • AppleScript scripts and applets
  • UNIX Shell script text files
  • Automator workflow files
  • Automator applets

The Script Menu dynamically generates its menu list based upon the contents various Scripts folders, located within the user and computer Library folders.

(⬇ see below ) The Script Menu selected while the Finder is frontmost:

script-menu-enumerated

 1  The Open Scripts Folder menu option provides access to the default script folders that supply the Script Menu.

 2  This sub-menu displays the three standard locations for the automation files that supply the Script Menu: 1) the scripts folder for the frontmost application; 2) the scripts folder for the current user; and 3) the scripts folder in the top-level Library folder, whose contents are available to all users.

 3  Select this option to launch the Script Editor application.

 4  This menu section displays the automation files for the frontmost application.

 5  This menu sections displays the automation files for the current user and are available from within any application.

Script Menu Tips

Here are some useful tips for working with the Script Menu:

  • To run a script or automation file, simply select it from the Script Menu.
  • To reveal the related automation file of a Script Menu menu item, hold down the Shift key (⇧) when you select the menu item.
  • To open the related automation file of a Script Menu menu item, into the Script Editor, Automator, or the default editing application for the file, hold down the Option key (⌥) when you select the menu item.
Activating the Script Menu

To make the process of activating and setting up the Script Menu easy, we’ve provided a script applet that will perform all of the setup procedures for you.

The setup applet will:

  • Enable the system-wide Script Menu
  • Make the user Library folder visible
  • Create the user Scripts folder (if it doesn’t already exist) in your Library folder
  • Create individual script folders for each of the standard Apple applications, within the Applications folder in the Scripts Folder

DO THIS ►DOWNLOAD and run a script application that will setup the Script Menu on your computer. NOTE: the setup applet requires an administrative user name and password.

Saving Workflows for use with the Script Menu

Saving Automator workflows so that they are accessible from the Script Menu is just a matter of saving them into one of the default Script folder locations.

Automation files (scripts & workflows) placed in the top level of the user Scripts folder will be available on the Script Menu for the current user, regardless of which application is frontmost.

Home  Library  Scripts

To limit the availability of automation files to be accessible from the Script Menu only when a specific application is frontmost, they are placed within individual folder named after the target application, like this path for the Finder:

Home  Library  Scripts  Applications  Finder

or for the Pages application:

Home  Library  Scripts  Applications  Pages

To enable workflows to be available to all users, save them into the computer Library folder:

Macintosh HD  Library  Scripts

(⬇ see below ) The Automator save sheet:

save-sheet-enumerated

 1  The file format popup menu. Select either workflow or application formats for use with the Script Menu.

 2  Enter the name for the saved workflow, keeping in mind that the name of the workflow will be used as the title of the Script Menu item.

 3  Use this popup menu to navigate to either the user or computer Scripts folder. Workflows saved in this directory will be available from within all applications.

 4  The Applications folder within the Scripts folder contains directories for individual application automation files.

 5  To make a saved workflow available from within only specific applications, save the workflow within the target application’s folder. If a folder for the target application is not in the list of folders, navigate into the Applications folder and click the New Folder button to add a folder for the target application. The name of the created folder must be the name of the target application.

Once a workflow has been saved into one of these destinations, it will appear on the Script Menu.

Script Menu Preferences

This section describes how to access and set the preferences for the system-wide Script Menu.

The system-wide Script Menu is turned on and off from within the preferences window of the AppleScript Editor application, accessed by selecting Preferences… from the AppleScript Editor application menu.

The following illustration and callouts, outline a standard set of setup options:

script-menu-prefs

 1  The General tab of the AppleScript Editor’s preference window contains the controls for the Script Menu.

 2  Select this checkbox to activate the Script Menu.

 3  This checkbox enables or disables the display of the scripts in the computer Library folder. To simplify the use of the Script Menu, this option can be left unchecked.

 4  These radio buttons determine whether the scripts for the frontmost application appear above or below the scripts placed in the top-level of the user Scripts folder. Script files located in the top-level of the user Scripts folder are available from within every application.

TOP