[OSX] Folder Action with Automator (not working)

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Haywardp98
Posts: 3
Joined: 05 Nov 2016, 14:34

[OSX] Folder Action with Automator (not working)

Post 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!
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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. ;)
:idea: Please read the FAQ and How to Request Help.
Haywardp98
Posts: 3
Joined: 05 Nov 2016, 14:34

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

Post 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?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
Haywardp98
Posts: 3
Joined: 05 Nov 2016, 14:34

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

Post 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 "$@"  
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

Please post the logs.
:idea: Please read the FAQ and How to Request Help.
Post Reply