image

Scripts Menu

image

The Scripts menu (image) accesses auxiliary scripts. Each menu item represents a file (or folder) in the Scripts folder.

Scripts to go in the Scripts menu should live in ~/Library/Application Support/Script Debugger 5/Scripts/.

A file will appear as a menu item. A folder will appear as a hierarchical menu, and the files inside it will be its menu items. The name of a file (or folder) is the name that will appear in the menu, except that certain names or part-names are hidden and used for determining the order of the menu, as follows:

Here are the actions you can perform with the menu items in the Scripts menu:

Scripts intended for the Script menu may be AppleScript scripts, shell scripts, Automator workflows, or applications. A shell script must have an identifying filename extension (this will usually be .sh).

A script in the Scripts menu can drive Script Debugger itself. Such a script does not need to include a tell block targeting Script Debugger; Script Debugger is implicitly the tell target.

You can debug a script in the Scripts menu by opening it in Script Debugger and putting it into debug mode. Leave the script open in Script Debugger and choose it from the Scripts menu to run it. It will pause at a breakpoint if there is one.

If a script initiated from the Scripts menu takes a long time to execute, a progress dialog appears. This dialog contains a Stop button that you can use to abort the script if you think something has gone wrong (or if you just don’t feel like waiting — you cannot do anything else in Script Debugger while a script is running from the Scripts menu).



image
Clippings Menu