Page 1 of 1

[OSX] Folder Action with Automator (not working)

Posted: 05 Nov 2016, 14:57
by Haywardp98
Please help,

I want to set up automator to rename and move my downloaded tv shows and movies. This is what I have so far,

• utorrent downloads to /Volumes/MINI DRIVE/Plex Media/Media/z Incomplete

Then moves them to /Volumes/MINI DRIVE/Plex Media/Media/z Complete/Torrents when completed.

I've set up automater Run Shell Script as

/usr/local/bin/filebot -script fn:amc --output /Volumes/MINI DRIVE/Plex Media/Media/ --action move --conflict skip -non-strict --log-file amc.log --def excludeList=".excludes" unsorted=y music=y "$@"

So it should find, rename then move media files to to the correct directory (I've removed the artwork part as I use plex which does that for you)

To me this looks correct, the 'cog' starts spinning in the menu bar but nothing happens. The strange thing is if I change the output directory to my desktop it works, but I need them to go to my external hard drive!

Please can someone help, this is driving me insane!!! Thanks in advance!

Re: [OSX] Folder Action with Automator (not working)

Posted: 05 Nov 2016, 15:15
by rednoah
Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • What are you trying to do achieve? What's not working? What have you tried so far?
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include basic information (i.e. sysinfo output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features


EDIT:


Please read Cmdline and Argument Passing. Mind your spaces. You're doing it wrong. ;)

Re: [OSX] Folder Action with Automator (not working)

Posted: 05 Nov 2016, 17:26
by Haywardp98
Wow thank you, all that stress and I forgot to add " "
There is one more thing I would like it todo, is there away to delete the left over files and folders after moving?

Re: [OSX] Folder Action with Automator (not working)

Posted: 05 Nov 2016, 18:02
by rednoah
Have you tried --def clean=y yet? Check the manual (and your logs after doing a test run) for details on how it works.

Re: [OSX] Folder Action with Automator (not working)

Posted: 06 Nov 2016, 09:14
by Haywardp98
Yes I have tried that but it didn't work, is there a specific place I need to put it in my script? This is what I've done;

Code: Select all

/usr/local/bin/filebot -script fn:amc --output "/Volumes/MINI DRIVE/Plex Media/Media/" --action move --conflict skip -non-strict --log-file amc.log --def excludeList=".excludes" unsorted=y music=y --def clean=y "$@"  

Re: [OSX] Folder Action with Automator (not working)

Posted: 06 Nov 2016, 11:44
by rednoah
Please post the logs.