Page 1 of 1

Error Processing Shell Script (TVNamer)

PostPosted: Fri Apr 20, 2012 8:54 am
by developr
Hello,

I have been trying to get Hazel to rename my downloaded TV Shows using TVNamer, but it just wont work.

Here is my action:
http://d.pr/i/fRWr

It get's executed, and I get the following Growl Notification:
http://d.pr/i/irsq

Running it manually works just fine:
http://d.pr/i/HWRM

//EDIT
I just noticed, that in the log I get the following error:
Code: Select all
2012-04-20 14:46:07.399 hazelworker[3423] Shellscript exited with non-successful status code: 1


How do I exit it with a successful status code?

I hope you can help me ;)

Best Regards

Re: Error Processing Shell Script (TVNamer)

PostPosted: Fri Apr 20, 2012 11:17 am
by Mr_Noodle
When you run it manually, you need to check the exit code. Do 'echo $?' immediately after running it to see what it is. If it is returning anything non-zero, then you need to check the TVNamer to see why it's returning that code.

If you are desperate, you can add "exit 0" to the script. That will just hide the error though so if TVNamer fails for a valid reason, Hazel won't catch it.