I'm trying to use applescript to run a command line process. A simplified version of the Applescript looks like this
do shell script "echo bwfmetaedit --INAM=\"name\" --IART=\"artist\" --ICRD=\"date\" /desktop/filepath.wav"
with the expected result being
bwfmetaedit --INAM="name" --IART="artist" --ICRD="date" /desktop/filepath.wav
If I were to just to run that command in Terminal, I get the correct output. However with applescript I get the following result. Note the missing double quotes around the values.
"bwfmetaedit --INAM=name --IART=artist --ICRD=date /desktop/filepath.wav"
What am I missing here? I need the double quotes around the values or else the command wont run properly.
Thanks, Morgan
Try:
do shell script "echo bwfmetaedit --INAM=\\\"name\\\" --IART=\\\"artist\\\" --ICRD=\\\"date\\\" /desktop/filepath.wav"