File.openDialog make me crasy

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
tapsystem
Posts: 21
Joined: February 19th, 2013, 2:44 pm

Hi,

i don't like help file when information are bad !!!! :evil: ( Javascript tool guide - Adobe) ...

I'm trying to popup a dialog box to select file (xml or ase)
js guide give this exemple for filter : "JavaScript:*.jsx;All files:*.*"

If you try do do this you can't get it to work, the good syntax is : "JavaScript:*.jsx,All files:*.*"
...you need to replace ";" by "," ..... :evil:

SO , when using this syntaxe this is working, but it's not exactly what i want to do .... i don't want the user to select the file type before selecting his file,
i want he can select 2 file type : visible at once: not *.xml or *.ase, but *.xml + *.ase... how is it possible to do that ?

Thanks for your help

Mr
tapsystem
Posts: 21
Joined: February 19th, 2013, 2:44 pm

Ok, i got the solution .... no more help needed :D

the solution is in the ";" but not like write in the js guide of adobe, you need to separate only the extensions by ";"

exemple :
var srcFile=File.openDialog("Choose color File (XML or ASE)","XML or ASE:*.xml;*.ase");

i hope this can help another one :wink:

Mr
Post Reply