6 Replies Latest reply on May 1, 2009 1:56 PM by try67

    Script to browse folder and open file

    macoris Level 1

      I'd like to simplify a batch process by running a script that will open a specific folder, and allow me to select and open the file I need.  I found this script in another discussion but I'm not getting the results  -- it opens to the last folder opened, and when I browse and select the file I need, it does not open.

       

      This is what I have:

       

      myFolder=Folder("/K/Presentations/Presentation Header Templates");
      myMask="*.indd";
      myDocs="K:\Presentations\Presentation Header Templates";
      myFile=myDocs.openDlg("Select File to Open", myFolder+"/"+myMask, true);

       

      Any idea what I'm doing wrong or missing?

       

      Thanks.