Permalink
Browse files

Fix: quote all pathnames in Score:recordNRT

  • Loading branch information...
1 parent b2f1e52 commit 888c32bf20c54a52714e7eb19cbb7047a6cc7f7a James Harkins committed Mar 3, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 common/build/SCClassLibrary/Common/Control/Score.sc
@@ -100,7 +100,9 @@ Score {
recordNRT { arg oscFilePath, outputFilePath, inputFilePath, sampleRate = 44100, headerFormat =
"AIFF", sampleFormat = "int16", options, completionString="", duration = nil;
this.writeOSCFile(oscFilePath, 0, duration);
- unixCmd(program + " -N" + oscFilePath + (inputFilePath ? "_") + "\""++outputFilePath++"\""
+ unixCmd(program + " -N" + oscFilePath.quote
+ + if(inputFilePath.notNil, { inputFilePath.quote }, { "_" })
+ + outputFilePath.quote
+ sampleRate + headerFormat + sampleFormat +
(options ? Score.options).asOptionsString
+ completionString);

0 comments on commit 888c32b

Please sign in to comment.