Using [textedit] to write text into [coll]

Edward Stumpp's icon

I have been working on this for hours and have not made any progress. So I figured I'd post it here and see if anyone has any ideas and/or can point out something I'm missing.

Essentially what I am trying to do is create a patch where you can type anything into the [texedit] object and have it stored in the [coll]. This could be a word or a single sentence. I've used the help files as a starting point in the hopes that keeping it simple would get to the desired result. Within the patch, you can type whatever into [textedit] and then hit enter for it to be stored in the [text] object.

From there, I cannot get the two elements to be store correctly and placed inside of a [message] that can be sent to the [coll]. Any ideas or advice would be appreciated.

Textedit and Coll issues.maxpat
Max Patch

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

Roman Thilenius's icon

as soon as spaces are involved i would [tosymbol] the stuff in order to write it into a coll.

textedit can be a real beast, which somehow never does what people think. use [printit] to check what it is actually outputting.

Source Audio's icon

yes, if one enters only spaces, textedit outputs bangs, and anyway one should be able

to delete lines as well...

I dislike counter option, and prefer insert, which puts new lines on top, as if ypu insert lines in text object

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

Edward Stumpp's icon

Thanks everyone! After some more experimentation and the examples here, I was able to make exactly what I had in mind. I really appreciate the help.

I honestly forgot some of the essential objects I would need for this, so this was a great refresher.