Pere
Pere

Reputation: 429

Shell script in Automator is not working

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 enter image description here

Upvotes: 2

Views: 938

Answers (1)

Mark Setchell
Mark Setchell

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

Related Questions