4 Replies Latest reply on Dec 24, 2012 4:49 AM by Gustavo Del Vechio

    Restrict open dialog to choose folders (instead of files)

    Gustavo Del Vechio Level 3

      Hi friends

       

      I´ve searched in the Photoshop reference but did not find what I need. So I´m asking your help (again)

       

      I´d like to let the user choose a folder that, in a moment inside the script, will be used to open their files.

       

      if I use >>>> var pasta = new Folder (app.openDialog())

       

      This open the dialog to choose files...not folders.

       

      Is there any method to use the Photoshop Open dialog box...but restrict to choose only Folders???

       

      If having subfolder...include the content of subfolder...(in the next step I´ll use the pasta.getFiles to get an array of the files).

       

      Thank you for the help

      Gustavo.