Screenshot of Hazel / TVnamer rule wanted

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Screenshot of Hazel / TVnamer rule wanted 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
fogcity
 
Posts: 2
Joined: Mon Jun 10, 2013 3:40 am

Re: Screenshot of Hazel / TVnamer rule wanted 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.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Screenshot of Hazel / TVnamer rule wanted 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.
jxp05j
 
Posts: 3
Joined: Sun Dec 26, 2010 11:00 pm

Re: Screenshot of Hazel / TVnamer rule wanted 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.
sjk
 
Posts: 332
Joined: Thu Aug 02, 2007 5:43 pm
Location: Eugene


Return to Open Discussion