using Hazel with HandbrakeCLI

I'm trying to set up Hazel to automatically send a file to HandbrakeCLI for conversion. Seems simple and everything looks all right...it's just not working.
My only condition (right now) is "Extension is avi". When I preview my rule matches, the .avi files in said folder are matched; the rule works.
On each matched file I'm having it run the following embedded shell script:
I can look up the console messages and see that the following was sent to the console:
which looks right. In fact, if I copy that starting with "/Applications/HandbrakeCLI..." into the terminal, Handbrake starts right up and successfully converts the file.
Anybody have any idea what I'm doing wrong here? Feeling at my wits' end.
My only condition (right now) is "Extension is avi". When I preview my rule matches, the .avi files in said folder are matched; the rule works.
On each matched file I'm having it run the following embedded shell script:
- Code: Select all
echo '/Applications/HandbrakeCLI -i ' $1 '-o ' ${1%avi}'mp4 --preset="iPhone & iPod Touch" -v'
I can look up the console messages and see that the following was sent to the console:
10/10/10 3:03:01 PM [0x0-0x12ca2c9].com.noodlesoft.HazelHelper[24274] /Applications/HandbrakeCLI -i /Users/joshuaconner/Movies/filename.avi -o /Users/joshuaconner/Movies/filename.mp4 --preset="iPhone & iPod Touch" -v
which looks right. In fact, if I copy that starting with "/Applications/HandbrakeCLI..." into the terminal, Handbrake starts right up and successfully converts the file.
Anybody have any idea what I'm doing wrong here? Feeling at my wits' end.