Forums > MaxMSP

Problem writing buffer to quoted file path with spaces

December 3, 2011 | 8:15 am

Hi,

I’ve read through many posts about properly placing quotations around file paths that contain spaces, and I believe I’m doing this correctly. However, I’m still having a problem with buffer~ not interpreting the file path correctly and resulting in an error that indicates the quoted file path argument to writeaiff is being interpreted as multiple arguments. If I enter the same message in a message object and trigger it, the buffer is successfully saved to the file. The enclosed patcher demonstrates the behavior I’m seeing. Could anyone offer a solution?

Thanks,
Steve

– Pasted Max Patch, click to expand. –

December 3, 2011 | 8:23 am

replace your sprint to this: sprintf symout %s/file%d.aiff


December 3, 2011 | 9:15 am

I could’ve sworn I had tried that. Thanks a lot Chris!


Viewing 3 posts - 1 through 3 (of 3 total)