Actions

Difference between revisions of "Right Click Booster"

From Hobbyist Software

(Created page with " == Command types == Right Click Booster can run shell scripts, or AppleScript scripts. It will parse all scripts in ~/Library/Application Scripts/com.HobbyistSoftware.RightC...")
 
(Replaced content with "this page has moved [https://blog.hobbyistsoftware.com/right-click-booster/ to here]")
Tag: Replaced
 
Line 1: Line 1:
 
+
this page has moved [https://blog.hobbyistsoftware.com/right-click-booster/ to here]
== 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.
 
 
 
<code>
 
#Action:{"name":"New finder window","appleScriptHandler":"finder_window","requiresDirectory":1}
 
</code>
 
 
 
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.
 
 
 
<code>
 
#Action:{"name":"Create Untitled.txt","param":"-t","requiresDirectory":1}
 
#Action:{"name":"Relaunch Finder","param":"-k"}
 
</code>
 
 
 
The script is run with as follows:
 
 
 
<code>
 
path/to/script.sh -p <path> <param>
 
</code>
 
 
 
== 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 [http://hobbyistsoftware.com/forum forum]
 

Latest revision as of 15:31, 11 May 2020

this page has moved to here