Folder browsing dialog always returns the application's folder, not the one I selected
My script uses a hard-coded destination path to save files. I want to make it more flexible with a file browsing dialog.
The selectDlg folder function seems obvious, but it always returns Photoshop's folder location, not the folder I chose in the dialog.
For example:
var outputFolder = Folder();
outputFolder.selectDlg("Output folder:");
$.write(outputFolder);
Expected:
My JavaScript console should report the folder that I selected in the system dialog.
Actual results:
No matter which folder I select in the dialog, it always returns as:
/c/Program%20Files/Adobe/Adobe%20Photoshop%20CC%202014/tmp00000001
The directory path is where Photoshop is installed on my computer. The tmp00000001 folder seems to be generated.
Am I missing something obvious?
