Skip to main content
Inspiring
August 14, 2023
Answered

is it possible to specify a directory for the command File. openDialog()?

  • August 14, 2023
  • 1 reply
  • 303 views

Hi all.

Is it possible to specify a directory for the File.openDialog() command? Executing File.openDialog() will open the dialog box in the expected directory..

This topic has been closed for replies.
Correct answer Alex White

You can pass the path like this:

var startFolder = Folder("~/Desktop/demo/");

var selectedFolder = startFolder.openDialog();

1 reply

Alex White
Alex WhiteCorrect answer
Legend
August 14, 2023

You can pass the path like this:

var startFolder = Folder("~/Desktop/demo/");

var selectedFolder = startFolder.openDialog();