However in searching through the forum I am unable to find any visual examples or clear explanations on how to write a script/shell? what I'm trying to do is make a script that I can make Hazel.prefpane run when a folder meets X criteria (file Kind is Media, date last modified is not in the last 10 mins) to run embedded shell (same as script?) or open a script similar to transmission-postprocess.
I've tried
Code: Select all
#!/bin/bash
/Applications/FileBot.app/Contents/MacOS/filebot.sh -script fn:amc --output "/Volumes/path/to/watch/folder" --log-file amc.log --action copy --conflict override -non-strict --def deleteAfterExtract=y artwork=y subtitles=en clean=y backdrops=y "seriesFormat=/Volumes/Media/TV/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} -S{s}E{e.pad(2)} - {t}" "movieFormat=/Volumes/Video/M0vies/{n} ({y})/{n} ({y}) [{certification}]" "musicFormat=/Volumes/Media/Muzik/{n}/{fn}" plex=gallo clean=y
any suggestions on how to make this all work would be greatly appreciatedLocking /Users/gallo/.filebot/logs/amc.log
Parameter: deleteAfterExtract = y
Parameter: artwork = y
Parameter: subtitles = en
Parameter: clean = y
Parameter: backdrops = y
Parameter: seriesFormat = /Volumes/Media/TV/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} -S{s}E{e.pad(2)} - {t}
Parameter: movieFormat = /Volumes/Video/M0vies/{n} ({y})/{n} ({y}) [{certification}]
Parameter: musicFormat = /Volumes/Media/Muzik\ to\ add\ to\ iTunes/{n}/{fn}
Parameter: plex = gallo
Parameter: clean = y
Exception: Conflicting arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
Failure (°_°)