Below Bash Sample Scripts can be found.
Please be very careful when working with Bash Script and always test your Scripts before entering the production stage.
Stop Recording Events
The following Bash Scripts can be used as Stop Recording Events.
Delete file 10 seconds after recording end
sleep 10 rm -f "$Just_In_Full_Clipname"
Move Highres and Lowres file after recording and rename Lowres (Proxy File)
if [[ "$Just_In_Full_Clipname" == *"Proxy"* ]]; then name="$Just_In_No_Extension_Clipname" tmp="_Proxy.mov" final="$name$tmp" mv "$Just_In_Full_Clipname" /Volumes/LAB_INGEST/INGEST/JIM/M1/Final/"$final" else mv "$Just_In_Full_Clipname" /Volumes/LAB_INGEST/INGEST/JIM/M1/Final fi
Start Recording Events
The following Bash Scripts can be used as Start Recording Events.
Erase all existing files at destination except new recording
recordPath=$(echo "$Just_In_Full_Clipname" | rev | cut -d"/" -f2- | rev) find "$recordPath/" -type f -not -name '$Just_In_Clipname' -delete
Display macOS Notification within Bash Script
It is possible to use Apple Script Code within a Bash Event Preset, for instance to display information with a macOS Notification. Please be aware to set up the Notification Settings within the System Preferences before.
osascript -e 'display notification "Started Recording" with title "$Just_In_Channel_Name"'