Embedded shell script fails

I have a shell script (in /usr/local/bin) called 'mkvdts2ac3', whose function is to convert audio inside of MKV files. When I invoke it from a Terminal command, it works flawlessly. However, I can't get Hazel to invoke it.
In Hazel, I'm using 'Run Shell Script -> Embedded Script'. I'm using this argument, using /bin/sh:
This returns "Error processing shell script on file ...". I also tried a couple of other variations, such as:
mkvdts2ac3 $1 (no quotes around the file reference)
mkvdts2ac3 "$1" (with /bin/bash this time)
mkvdts2ac3 $1 (again, with /bin/bash)
I'm running Hazel 2.3.8 on OS X 10.6.7. Any advice on getting this to work?
In Hazel, I'm using 'Run Shell Script -> Embedded Script'. I'm using this argument, using /bin/sh:
- Code: Select all
mkvdts2ac3 "$1"
This returns "Error processing shell script on file ...". I also tried a couple of other variations, such as:
mkvdts2ac3 $1 (no quotes around the file reference)
mkvdts2ac3 "$1" (with /bin/bash this time)
mkvdts2ac3 $1 (again, with /bin/bash)
I'm running Hazel 2.3.8 on OS X 10.6.7. Any advice on getting this to work?