Forums > MaxMSP

saving message state in standalone

July 12, 2009 | 8:24 pm


I am using prepend set to add some text to a message. I need this text to automatically save within the message so that when the application is reopened the prepended text is still in the message. I’ve tried autopattr and patchstorage but no luck. Alternatively the text would be stored in a coll object and saved for when the application is reopened. This does not seem to work either. Does anyone know how to do this?


— Pasted Max Patch, click to expand. —
July 12, 2009 | 8:40 pm

Is the user entering the text? I think [pattr] can recall the contents of [textedit]. If not then you could [loadmess 1] the [coll] and connect it to the right inlet of the [message] to set it when the patch loads.


July 13, 2009 | 2:49 pm

The user will be entering the text by hitting another message connected to a prepend set (or the right inlet). My issue is that neither the message or the coll is saving it’s contents once it has been entered by the user. It works with a patch since the user can simply save it, however, as a standalone the save button is disabled.


July 14, 2009 | 8:06 pm


Many ways to do this. One way is to save the message in a text file on close and bang it out on open. pattr would be another, maybe easier, way to do it.

— Pasted Max Patch, click to expand. —
July 15, 2009 | 7:18 am

Thanks Ben,

That is perfect.


July 20, 2009 | 3:30 pm wrote on Tue, 14 July 2009 22:06pattr would be another, maybe easier, way to do it.

A pattrstorage would have the advantage, that it could save all other sorts of values as well:


— Pasted Max Patch, click to expand. —
Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP