Double quotes around symbol without spaces?

elmiller's icon

Hi,

I am looking to put text with both single word and multiple word length into comment boxes using (set $1). Multiple (as a symbol) obviously has double quotes, which I want, but single does not and I cannot figure out how to get it to. I've tried sprintf, but they disappear once passed as a message. I know this is the format max uses, and the quotes are only needed when passing symbols with spaces, so I get why they are automatically removed, but is there a way to bypass this?

Thanks,
Eric

ch's icon

Hello Eric,

you're probably looking for that (?) :

Max Patch
Copy patch and select New From Clipboard in Max.

`
Charles

Roman Thilenius's icon

if you would use [prepend set], this takes symbols as well as lists...

ch's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Oh right, I forgot about the lists. As well if you don't care about having spaces around, you can do that :

elmiller's icon

Thanks both of you for your responses. I wanted to avoid the spaces if possible, but it's not that big of a deal.

Best,
Eric