Reputation: 429
I've just figured out how to pass variables to a shell script in Automator thanks to this post but now the script doesn't work, when in Terminal works well. I'm missing something? Tried with and without quotes. Btw the script is for converting audio to any format, in this case to m4r ringtones format.
afconvert [original-audio-file] [ringtone-file] -f m4af
Here is screenshot of automator workflow
Upvotes: 2
Views: 938
Reputation: 207345
You probably need to tell the shell script where afconvert
is installed. So, in the Terminal, type:
which afconvert
to find where it is. Then use the full path it displays inside your script, something like this:
/usr/local/bin/afconvert "$1" "$2" -f m4af
echo $1
echo $2
Upvotes: 4