I am really frustated here. I am trying to have a single-message string, let’s say "hello" and I am trying the backslash trick like so: "hello" and it comes out as " hello" (with a space.)
I tried many different combinations, but nothing works.
I even tried [tosymbol] but it returns everything with quotes BUT a single-message quote.
Any insight on the matter?
I think the quotes of "hello" are redundant within Max and thus ignored/removed.
Do you need them for something special outside of Max?
I am not able to produce "hello" in a message box, this may depend on the behavior of the box itself. Maybe it is possible with [sprintf …]
But if you [print] "hello" to the Max window, it shows up as "hello", so probably it works for you anyway?
If you need it for display
purposes only, you could send
to a comment object.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 439.3ocyUssbBBCD8Y3qHSd15PPPj9V+NpNc3RplNPBCIL0VG+2KYAonEq.C 0ouDX2jr4bN6tIGLMvgh8TIF8H5YjgwASCCvk1gQssANMXeTRfDVFNrPoDb7 rpo3EohBUBUASRp8V4R8QFsJx3v.9VLZS8zYApncL91WxoQppUPrslaMC4.i 1MiMagECGtH7sGV5z5vY7lyV66noodXVO4RjHMkxUcSFqZuuJ3JdPJPE7S4r fD7M4AwwU+w0CL7aQDczjrOgnQHys5fe1SF+3z2Ki3ovon6AThyxoYTdLRRU +dd75T+GY39jcIDPUV5OFUwZxTkTpTFrkNVpWpdxxhl.ESvawQ6E.47gTtU8 PCAGnd461tJZIX3MH8x0uS8xdJqhXSZqiW6NmE1inFwc0eUMRCoWudMdGMIQ n+4t173A5hypwTK3cyZAHZ3DF+xGC..o8etXIEE4Qmf+oakQeCpXpTw3PORq EoARqEsiEGS4sKXRYwYhxxpZPf1zYpquX5hi6JXprQAQ5OlH19ycK2g0B3QJ GRi0cAsqFlBdNZ87mJvpuN9lfU+R1+sz8E.eXXpz3n4W9lRFEB -----------end_max5_patcher-----------
Thanks for your responses folks, turns out I didn’t need the quotes after all! I just wanted to use [absolutepath] and I wasn’t sure whether I needed quotes in the messages or not, but turns out you need quotes for a larger message string.
Quotes are necessary to deal with spaces in messages, and especially with filepathes. You should use tosymbol to automatically add quotes if necessary (i.e. if there are spaces in the path).