Move all or none from CLI
Posted: 22 Jun 2017, 12:40
Hello all,
I've written a script that automatically processes recorded video files and in the course of that calls the filebot CLI to rename and move the files with clean filenames. The renaming part works well in general, but I encountered a specific problem, I could not solve yet.
The script passes two files to filebot – a video file and a corresponding .edl file (a marker to skip commercials). Now in certain situations a .edl file at the target destination exists, but no video file. Then filebot moves the video file and leaves the .edl in place, no matter what setting for --conflict I choose. Unfortunately this doesn't make any sense since the .edl belongs to and works with just that one specific video.
Does anybody know how to make filebot process either ALL passed files or NONE if any conflict appears? Alternatively if filebot would not move the files at all, but instead return the new path and filename according to the naming settings it would also solve this.
I'm sure this would both be possible with a script, but before digging into the groovy language I'd prefer a CLI option.
Many thanks in advance!
Malte
I've written a script that automatically processes recorded video files and in the course of that calls the filebot CLI to rename and move the files with clean filenames. The renaming part works well in general, but I encountered a specific problem, I could not solve yet.
The script passes two files to filebot – a video file and a corresponding .edl file (a marker to skip commercials). Now in certain situations a .edl file at the target destination exists, but no video file. Then filebot moves the video file and leaves the .edl in place, no matter what setting for --conflict I choose. Unfortunately this doesn't make any sense since the .edl belongs to and works with just that one specific video.
Does anybody know how to make filebot process either ALL passed files or NONE if any conflict appears? Alternatively if filebot would not move the files at all, but instead return the new path and filename according to the naming settings it would also solve this.
I'm sure this would both be possible with a script, but before digging into the groovy language I'd prefer a CLI option.
Many thanks in advance!

Malte