Page 1 of 1

Screenshot of Hazel / TVnamer rule wanted

PostPosted: Mon Jun 10, 2013 6:36 am
by fogcity
I'm unable to figure out how to have Hazel rename TV show episodes using TVnamer.

If anyone has a workflow that includes Hazel and TVnamer could you please post a screenshot of your working rule?

im trying this:

Run Shell Script > embedded script:
shell = /bin/sh
code = /usr/local/bin/tvnamer --batch "$1"

Files are found but tvnamer appears to not get called:

2013-06-10 01:35:32.566 hazelworker[900] Processing folder UNSORTED
2013-06-10 01:35:34.585 hazelworker[900] Mad Men s06e11 Favors.mp4: Rule TVnamer SxxExx matched.
2013-06-10 01:35:36.164 hazelworker[900] Done processing folder UNSORTED

Re: Screenshot of Hazel / TVnamer rule wanted

PostPosted: Mon Jun 10, 2013 12:17 pm
by Mr_Noodle
Please only post actual Tips to the Tips forum (the sticky article there tells you this). Do not post questions there.

I suggest searching the forums as I'm pretty sure someone else here is using tvrenamer. You might also want to test in Terminal to make sure things work ok there.

Re: Screenshot of Hazel / TVnamer rule wanted

PostPosted: Mon Jun 24, 2013 11:43 pm
by jxp05j
Have you tried invoking tvnamer by its name alone? This is what is working for me:

Code: Select all
tvnamer --batch $1


The shell is /bin/bash.

Re: Screenshot of Hazel / TVnamer rule wanted

PostPosted: Tue Jun 25, 2013 1:09 am
by sjk
jxp05j,

The reason tvnamer works without the full pathname is because it's in a directory that's in the command search path of the bash shell script that Hazel invokes. If tvnamer is in /usr/local/bin on fogcity's system then specifying the full pathname to it, i.e. /usr/local/bin/tvnamer, more explicitly ensures it's the one that'll be used than if the directory is omitted.