• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Initial directory for openDialog

Community Beginner ,
Aug 03, 2010 Aug 03, 2010

Copy link to clipboard

Copied

Hi,

I was wondering if it's possible to set an initial directory for the File.openDialog() function - like we can do for the Folder.selectDialog().

The File.openDialog() function keep the last folder in memory, but I would like to set an initial directory for the first time I click on my browse button.

Thanks

TOPICS
SDK

Views

591

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Adobe Employee ,
Sep 13, 2010 Sep 13, 2010

Copy link to clipboard

Copied

LATEST

No problem: Create a File instance using the desired path and file name, then call the File object's openDlg() method.

var f = new File("/c/temp/myFile.txt");
f.openDlg();

The dialog will displaya the contents of "/c/temp", and the name field is preset to "myFile.txt".

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines