Save and Save as in a standalone made with Max 8
hi all, I'm trying to enable the save and save as command in my standalone created with max 8. Isn't there an auto-save method when the app closes? Thanks!
You can't save your patch from a standalone (actually a standalone is a Max collective opened by Max Runtime, hence the "Save" commands are disabled.
If you use [pattr] and [pattrstorage] you can save your patcher's attributes automatically on close using [pattrstorage @autosave 2].
If you are using [preset], you have to send it the "write" and "read" messages, you can automate those on opening and closing using [loadbang] and [closebang], but I wouldn't trust them.
You can even customize your standalone's menu bar using the [menubar] object if you want to implement a "save presets" command there, instead of placing a button in the patch itself.
thanks for your answer! i'm using presets, but after writing the preset on my hd, the read command doesn't read it to me, i'll create you a very simple, test patch!
You must specify a file name to the write and read messages
Thanks LSKA , as you said, I tried with [pattr] and [pattrstorage] and I think it's a better way to proceed, you were right, it's better not to use [preset]. I am also using [coll] to write all the data in a text file. Thanks again!