Actions

Right Click Booster

From Hobbyist Software

Command types

Right Click Booster can run shell scripts, or AppleScript scripts. It will parse all scripts in ~/Library/Application Scripts/com.HobbyistSoftware.RightClick.RCPlugin to find available actions.

Right Click Booster sends a single path to the script

If you select multiple files, then RCB will send the path to the shared directory (if they are all in the same directory). If you select a single file, then RCB will send the path of that file unless you select the 'requiresDirectory' option in your action description.

Applescript format

Applescript scripts should be saved as .applescript

Actions are defined by comments at the top of the applescript file.

Use multiple lines for multiple actions.

#Action:{"name":"New finder window","appleScriptHandler":"finder_window","requiresDirectory":1}

The path is send as an argument to the handler (function).

Shell Script format

Shell scripts should be saved as .sh


Actions are defined by comments at the top of the applescript file.

Use multiple lines for multiple actions.

#Action:{"name":"Create Untitled.txt","param":"-t","requiresDirectory":1}
#Action:{"name":"Relaunch Finder","param":"-k"}

The script is run with as follows:

path/to/script.sh -p <path> <param>

Examples

Example scripts are given in the RCB_Scripts disk image within the app bundle, available through the preferences.

You can discuss scripts and ask questions in the forum