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

Apr 6, 2011 at 2:08am

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

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. –
#56123
Apr 6, 2011 at 3:20am

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.

Cheers,
Jay

#201525

You must be logged in to reply to this topic.