has anyone figured out how to get filebot script to run

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
elgallo
Posts: 40
Joined: 29 Apr 2014, 10:33

has anyone figured out how to get filebot script to run

Post by elgallo »

I've sen a few post about Hazel and that people finally get it to work. but they don't post their rules. the Hazel forum is less active than here (most recent posts are from last year). Dev's comment about filebot is
You'll have to check with Filebot and see what environment it is assuming. Remember that Hazel does not run in the same environment as the commandline so you'll likely have to set certain environment variables yourself. Also, search the forums as there might have been others that have figured this out with Filebot.
Image

the embedded script is a cut and paste of my script for movies that works when run within terminal. the only thing I can figure else to try is replace
"Volumes/M0vies/Download/Plexed/" with "$1" to call the file that triggered the Hazel rule (rule being conditions within a watch folder based on file/folder)

or what the environment Filebot is expecting to run in?

so far the script seems to partially work as it refreshes Plex, but I get an error on the file itself that it tries to rename.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: has anyone figured out how to get filebot script to run

Post by rednoah »

Does Hazel give you the standard output and standard error of the call? I'd start there.

Also, it's either filebot or /usr/local/bin/filebot, but if filebot isn't working than java probably isn't neither.

If it's actually updating Plex then it's running just fine. Look at the log for what's going on.
:idea: Please read the FAQ and How to Request Help.
Post Reply