Scripting
Last updated
Last updated
OffShoot is built with extensibility in mind. Trigger your custom scripts on specific events in OffShoot, and you can run custom processes, other apps or integrate OffShoot into an existing workflow.
Scripting is a powerful tool. Easy to learn, but even easier to screw up. Always test your script with disposable data, and then test again. And again.
OffShoot does not offer support or assume responsibility for problems with or due to examples or any other script.
If you’re new to scripting, find someone to help you out, or use the example scripts available here. Remember: you are solely responsible.
OffShoot defines eight events:
OffShoot Started
Verification Issue
Each event has its own set of unique parameters that you can use. To be able to use a parameter, you must first declare it at the top of your script:
Do you want to check if you declared a parameter correctly? Return the value first in one of three ways:
return theFolder
to output into the Event Log
display alert "theFolder = " & theFolder
display notification with title "theFolder =" subtitle theFolder
When you download a script from this site or other sources, unpack the zip. Then open OffShoot, go to Settings
> Scripting
, and select the event you want to add a script to. Click the Browse... button and find your script. From now on, OffShoot will attempt to run this script every time this event occurs.
If for some reason, the script no longer exists in the original location, OffShoot will not warn you about it.
AppleScript is not possible on Windows, but Python is.
On Hedge 22.2.5 or older? Add a script via a Registry key: Computer\HKEY_CURRENT_USER\Software\Hedge
Key
Value
EventScriptDiskAdded
path to the script file
EventScriptDiskRemoved
path to the script file
EventScriptDiskBusy
path to the script file
EventScriptDiskIdle
path to the script file
EventScriptAllDisksIdle
path to the script file
EventScriptFileCopyCompleted
path to the script file
EventScriptCheckpointIssue
path to the script file
Timestamps are shown as YYYYMMDDHHMMSS.
Duration is in seconds, with six-digit precision.
Size is in bytes. To convert bytes to GBs, divide by 1024^3.
Script Events are logged in OffShoot's .