-exec option usage
The -exec option can be added to filebot -rename commands to call post-processing commands on newly renamed files, or to filebot -find and filebot -mediainfo commands to call custom commands on selected files akin to how standard POSIX find -exec works.A. Call command multiple times, once for each unique argument sequence:
Shell: Select all
filebot ... -exec command {expression}
Shell: Select all
filebot ... -exec command {expression} +

Shell: Select all
filebot ... -exec command {expression} "*"
Shell: Select all
filebot ... -exec command {expression} "+*"
e.g. call echo for each file:
Shell: Select all
-exec echo {f}
e.g. call chmod and pass in all files as arguments at once:
Shell: Select all
-exec chmod -v 644 {f} +
e.g. call mkvpropedit on each file and set the embedded media title:
Shell: Select all
-exec mkvpropedit {f} --edit info --set title={object}
e.g. call a custom script and pass along file paths and metadata:
Shell: Select all
-exec /path/to/script.sh {f} {historic.f} {json}
--def exec amc script parameter usage
The amc script has a dedicated --def exec script parameter that works independently from the filebot -rename -exec option. The usage (i.e. a single argument value that generates the entire command-line) and the timing (i.e. execute at the end of each script run and not at the end of each rename operation) is notably different:Shell: Select all
filebot -script fn:amc ... --def exec="echo {quote f}"