how to read only maxpat in opendialog

prko's icon

Dear users,

how can I read only maxpat file type?
I used the followings:

opendialog maxb

and then

opendialog maxpat

I can not open maxpat file type.

What is the correct argument?

best,
prko

Luke Hall's icon

I think "JSON" is the file type that you want to use in this case.

lh

prko's icon

thank you!
It works well.

seejayjames's icon

also check max-fileformats.txt in the Cycling 74-->init folder. It lists all the formats and their codes, which you can use for your opendialog filtering, or put into the filetypes attribute within the umenu. good for having a "images/videos" dropdown versus a "music/audio" dropdown, for example.