how to remove quotes from message?

CowboyTakeTwo's icon

I have a [combine] that sets up a "send xxx, message" to a [forward]. in the combine arguments, there are quotes so that everything is spaced right. for some reason there are quotes around the whole resulting message. It doesn't work right with forward, but the same message without quotes will.

How can I remove double quotes enclosing a message? I've messed around with regexp... thx for any help.

CowboyTakeTwo's icon

Looks like regexp doesn't recognize these quotes as part of the message. I'm so confused...

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

Here's what I want. Clicking on the button should use the [combine] to send the same exact message to [forward] as does the leftmost message. the word "arguments" should be printed under "result". Nothing works as expected... please help. Thanks.

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

this--as a brute-force solution--works:

Nick Briz's icon

I'm a bit late to this thread, but maybe it'll help someone out, here's a much simpler solution w/ only one object: [sprintf %s] :)

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

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

doesn´t [fromsymbol] do this?

webe's icon

@Nick @XH90

Those solutions introduce linebreaks. If you still want to keep the list / string as a whole this solution doesn't work.

yaniki's icon

@WEBE Actually [fromsymbol] doesn't introduce any line breaks - it's just producing a list from symbol.

However, if you are using message box as a display and the box is to short (you may extend length of the box if needed) to present the list as a single line it will be formatted as several lines (but it's only for displaying, the content of the list will be unchanged).

webe's icon

@YANIKI

You're right. My mistake!
I shall take a break from this patch now ;-)

PS: I parsed the input before [itoa] which worked for me - since the list (ASCII) already contained quote marks that I had to replace.

yaniki's icon

Glad, my tip was handy.

cheers

p

Morissette Jones's icon

Hi, if you are using message box as a display and the box is to short (you may extend length of the box if needed) to present the list as a single line it will be formatted as several lines (but it's only for displaying, the content of the list will be unchanged). mobdro

Michael Gary Dean's icon

Here's a subpatcher to remove the double quotes from symbols (or any other characters if you change the ASCII value)

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

--
Michael Gary Dean
Interactive Media Developer
http://michaelgarydean.com