move files but don't write over
Posted: 09 May 2014, 11:23
Hi all,
So i've got setup on my mac mini media center with automator for the below shell script to run as a folder action whenever downloaded files appear in my Completed Downloads folder (uTorrent is set to move finished files there from its active folder)...
/Applications/Filebot.app/Contents/MacOS/filebot -script fn:amc "/Volumes/PROMISE PEGASUS/Completed Downloads" --output "/Volumes/PROMISE PEGASUS" --action move --conflict override -non-strict --def artwork=n subtitles=en "seriesFormat=Series/{n} [{y}]/Season {s}/{n} - {s00e00} - {t} [{vf}]{\".\$lang\"}" "animeFormat=Anime/{n} [{y}]/{n} [{y}] [{vf}]{\".\$lang\"}" "movieFormat=Movies/{n} [{y}]/{n} [{y}] [{vf}]{\".\$lang\"}" "musicFormat=Music/{n}/{fn}" clean=y plex=te5s3rakt gmail=******:******
Works great, and does what I want, except i've noticed a few cases where it doesn't lol...
This is where it renames a files then moves it to my media directories, then renames another file the same, and moves that and writes over the other file... I've actually had a couple of cases where it's named a movie to something i've already got, and written over it... I'll admit this is rare, but i'd like to safe guard against it cause in those cases i've had to re download the files on my laptop and manually rename and move them after... which not only uses up my monthly usage allowance, but is time consuming trying to track down what i'm now missing...
Is there a way to set renamed files to read only after the move, and then each time it tries to move a similar file after its name to append a number maybe to the name (i.e. 1, 2, 3, etc.) like when you copy a same name file into a folder in windows it appends a number to the name... eg. "File (1)"...
Thanks heaps in return
So i've got setup on my mac mini media center with automator for the below shell script to run as a folder action whenever downloaded files appear in my Completed Downloads folder (uTorrent is set to move finished files there from its active folder)...
/Applications/Filebot.app/Contents/MacOS/filebot -script fn:amc "/Volumes/PROMISE PEGASUS/Completed Downloads" --output "/Volumes/PROMISE PEGASUS" --action move --conflict override -non-strict --def artwork=n subtitles=en "seriesFormat=Series/{n} [{y}]/Season {s}/{n} - {s00e00} - {t} [{vf}]{\".\$lang\"}" "animeFormat=Anime/{n} [{y}]/{n} [{y}] [{vf}]{\".\$lang\"}" "movieFormat=Movies/{n} [{y}]/{n} [{y}] [{vf}]{\".\$lang\"}" "musicFormat=Music/{n}/{fn}" clean=y plex=te5s3rakt gmail=******:******
Works great, and does what I want, except i've noticed a few cases where it doesn't lol...
This is where it renames a files then moves it to my media directories, then renames another file the same, and moves that and writes over the other file... I've actually had a couple of cases where it's named a movie to something i've already got, and written over it... I'll admit this is rare, but i'd like to safe guard against it cause in those cases i've had to re download the files on my laptop and manually rename and move them after... which not only uses up my monthly usage allowance, but is time consuming trying to track down what i'm now missing...
Is there a way to set renamed files to read only after the move, and then each time it tries to move a similar file after its name to append a number maybe to the name (i.e. 1, 2, 3, etc.) like when you copy a same name file into a folder in windows it appends a number to the name... eg. "File (1)"...
Thanks heaps in return