Copy link to clipboard
Copied
Is there a way to specify that folder just like we can in selectDialog(prompt, default folder object)???
Otherwise the openDialog shows the last folder accessed by the user. Or can we modify the Window's Environment variable?
Thanks, Alex
Without getting into a discussion about the new forums, it is cute to see a question unanswered and then in the "More like this" section you find the answer to the question. (didn't realize until after I posted)
Copy link to clipboard
Copied
To Specify folder use openDlg method not OpedDialog.
when using openDlg it is neccesary to first create a File object, set parent folder to desired folder for opening dialog and file name for default file name. then if OK is pressed the fsname will have file path
Steven
Copy link to clipboard
Copied
Without getting into a discussion about the new forums, it is cute to see a question unanswered and then in the "More like this" section you find the answer to the question. (didn't realize until after I posted)
Copy link to clipboard
Copied
By the way, you can also do
var myDefault = new Folder ("U:/xxx/zzz");
var myFiles = myDefault.openDlg(prompt string, filter string+pattern, multi-selection bollean);
Works in CS3. The Filename is left blank since we use a folder as a file... and the parent is the folder.
Alex.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more