Forums > MaxMSP

why quotation marks from sfinfo~ and info~ to textedit?

Apr 06 2011 | 2:08 am

I’m using textedit to display the file name currently held in the buffer~. However, I can’t get the name to show up without " " on either side of it. It works fine typing the file’s name into a message box, prepending ‘set’ and sending to textedit. Why does sfinfo~ and info~ put the file name in quotation marks, and how do you remove them?

— Pasted Max Patch, click to expand. —
Apr 06 2011 | 3:20 am

Nevermind, sorry for the premature post.

When file name is output from [sfinfo~] or from [info~], it is output as a symbol. Sending a message with something like this: file name.wav – this is actually read by [textedit] as a list consisting of (in this case) two elements. All that is needed to be rid of the quotation marks is to convert the symbol back into a list. Hence, [fromsymbol] does the trick.


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

Forums > MaxMSP