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. —
Copy all of the following text. Then, in Max, select New From Clipboard.
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.