I'm having this same problem, but Luke's [sprintf cp -v \"%s\" \"%s\"] isn't working for me ...
Let's say I have this path:
/Volumes/Macintosh HD/Users/Tim_Lloyd/Desktop/Space Test
and I want to convert it to this:
/Volumes/"Macintosh HD"/Users/Tim_Lloyd/Desktop/"Space Test";
WITHOUT losing the ; at the end when I then combine it with:
sox "Space Test.wav" "Space Test_44100.wav" rate 44100
The resulting string has to have ALL but ONLY directories and filenames with spaces in the names enclose with "..." ... that's the bit that's confounding me :) Directories and files with no spaces in the name have to just remain as /name/... if that makes sense.
Anyone have any tips?
If I had any competence at all with a textual programming language, I wouldn't be trying to do this in max :-/