daci wrote:… it gives me errors all the time
What are the errors?
Try wrapping $1 in double-quotes, i.e. "$1".
PS: Best not to multipost, e.g. here and there. Makes it tougher for readers to choose where to post replies.
Moderators: Mr_Noodle, Moderators
/usr/local/bin/tvnamer --config=/Users/macmini/Documents/Scripts/mytvnamerconfig-c.json "$1"
carloscloud wrote:This is a great workflow but I have problem with executing the tvnamer shell script.
Everything works perfect if i execute the following command directly in the bash terminal,
/usr/local/bin/tvnamer --config=/Users/Martin/mytvnamerconfig.json tv.show.s04e02.720p.hdtv.x264-group.mkv
But when I execute the same command line in Hazel (/usr/local/bin/tvnamer --config=/Users/Martin/mytvnamerconfig.json "$1") I receive errors in the Hazel log:
2011-08-20 14:50:21.426 (null)[0] tv.show.s04e02.720p.hdtv.x264-group.mkv: Rule Copy of Rename w/ TVnamer & Final Move matched.
Python error: <stdin> is a directory, cannot continue
2011-08-20 14:50:21.708 hazelfolderwatch[8134] [Error] Shell script failed: Error processing shell script on file /Volumes/Downloads/4.Renaming/tv.show.s04e02.720p.hdtv.x264-group.mkv.
This is how my Hazel rule looks like:
Please help me, I'm really looking forward to have a full automated download workflow.
/usr/local/bin/tvnamer --batch "$1"
5/3/12 11:39:05 PM [0x0-0xc40c4].com.noodlesoft.HazelHelper[1534] Python error: <stdin> is a directory, cannot continue
2012-05-30 18:44:24.984 hazelworker[11282] [Error] Shell script failed: Error processing shell script on file /Users/blah/blah.blah
Mr_Noodle wrote:Did you supply the full path to the tvrenamer program?