Saving JSON File

Mar 13, 2011 at 7:28pm

Saving JSON File

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 at 11:08am

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 at 6:17pm

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 at 2:16pm

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


You must be logged in to reply to this topic.