Page 1 of 1

Issues with shell script

PostPosted: Tue Feb 21, 2017 5:50 pm
by bvp663
I'm attempting to have Hazel run LAME on any new .aif files in a folder and convert them to mp3s. I can run the script in Terminal and it works fine, but it doesn't seem to work in Hazel for some reason.

Command is Run Shell Script
Script is:
Code: Select all
/usr/local/bin/lame -a -b64 $1


I get an
error processing shell script
message from Hazel when it tries to run.

The same script works fine when pasting it into Terminal and replacing $1 with the file path, but Hazel keeps choking on it for some reason. Any ideas?

Re: Issues with shell script

PostPosted: Wed Feb 22, 2017 1:05 pm
by Mr_Noodle
Are there spaces in the path? If so, that's probably the problem. Enclose $1 in double quotes to fix it.