Hi, I'm a noob, so hope this isn't obvious, but I have searched and searched and found nothing similar online or on these forums.
I want to run tvnamer via Hazel:
IF:
<all> conditions met for <file or folder>
<kind> is <movie>
DO:
<run shell script><embedded script>:
usr/local/bin/tvnamer --batch "$1"
If I run this through terminal (with the folder location - Users/User/Downloads/DLTVShows/) it works flawlessly, but in Hazel, it never works. I added the 'usr/local/bin/' part to the shell command to try to make sure it wasn't an error in location.
Looking at the Hazel.log, the script is starting, matching the name of the tv shows, then reporting an error "processing shell script on file /Users/User/Downloads/DLTVShows/show.S01E09.avi", and that "shellscript exited with non-successful status code: 127"
I haven't had much luck tracking down that error code, but I think it might be a sandboxing issue somehow. I know Hazel isn't sandboxed, but in Console, I see a heap of "deny file-read-data /Users/User/Downloads/DLTVSHows" reports when I try to run the rule.
So, is part of the process being sandboxed when the script runs through Hazel, but not through terminal? Is that why I can't get this shell script working? Is there an alternative to run the script, through automator or something, that could help me bypass this hurdle?
Thanks!