Forums > MaxMSP

Saving JSON File

Mar 13 2011 | 7:28 pm

Hi Everyone,

I’m working pattrstorage
When I go to save the file in windows7,it shows JSON,XML and ALL.
is it possible to select JSON specificly without it showing ALL.
like any other application?
what i want to happen is for my application to only show JSON when opening and saving.
any help will be appreciated.

Erick C

Mar 14 2011 | 11:08 am

As far as I know the "all" option always shoes up in the save dialog.
you could use the "writejson" mesaage – than json is preselected or "writejson $1" and feeding the filename i.e from a [dialog] or [textedit].

Mar 15 2011 | 6:17 pm

Alternatively you could indicate the full path for writing your file including of course the ending, like json. if you adapt the storagemode of the pattrstorage you can have it very unintrusive, e.g. autosave it.

Mar 16 2011 | 2:16 pm

In mac osx openDialog works well. the application sees only json
without further selection.
this is not possible in windows.
as jan said the "all" option always shoes up in the save dialog.
thanks for all your help.

Erick C

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP