Skip to main content
Loic.Aigon
Legend
June 2, 2008
Question

OpenDialog to a specific folder

  • June 2, 2008
  • 26 replies
  • 4393 views
Hi,
I saw this question was discussed already but following the tip, I don't have any success. Moreover I couldn't post in the thread so I have to open this topic. Sorry about that.

Well,
here is the matter :
var myfile = File("\\192.168.1.1\Marketing\17. Produits\COPY\Tiff_CMYK_300dpi\ok\copyripok_uk.tif");
myfile.openDialog(); // > ERROR

/*

File.openDialog() // Works great.

*/

So it's so annoying. Where am I wrong ?
Thanks for help
Loic
This topic has been closed for replies.

26 replies

August 5, 2008
Hi Loic/Bob,

Using openDlg, is there a parameter to select multiple files?

Regards
Norbert
Loic.Aigon
Legend
June 2, 2008
Ok thanks for all your advices.
I guess I will have to try replacing the complete data (\\192.168...) by a shorter version (i.e. for example g:/...).
I ll keep you in touch.
Loic
June 2, 2008
Exactly.

The File object doesn't play all that well with servers unless the drive is mounted. That hasn't been a requirement for me, so I don't know if you can do that without mounting the server drive or not.

myFile.exists will tell you if you've managed to point to the server correctly.

Bob
Loic.Aigon
Legend
June 2, 2008
Hi,
some news,
I get a result if the file is placed on my hard drive ("c:/...") but it still fails when the file is on a server ("\\192.168.1.1\...").
Is there any way to solve this ?
Loic
Loic.Aigon
Legend
June 2, 2008
Hi Bob
Thanks for taking the time to answer.
Unfortunately, I am still stuck. I get a null info when trying this.
It's like Indesign tried to open the dialog (the app seems to vibrate) but nothing appears at the end and the javascript console says null.
Loic
June 2, 2008
myFile.openDlg();

Bob