2 Replies Latest reply on Feb 6, 2011 7:15 AM by [Jongware]-9BC6tI

    Open documents within a folder without specifying filenames

    rmsteel01

      Hi there,

       

      I need to batch apply some script to all documents within a specified folder. Can I open each document one by one without specifying the filename?

       

      So, instead of:

       

      var myDocument = app.open(File(Folder.desktop + "/OpenDocument.indd"));

       

      Something like:

       

      var myDocument = app.open(File(Folder.desktop + "/" + documents[0]));

       

      Obviously that doesn't work, but hopefully it illustrates what I am trying to achieve.

       

      Thanks in advance,

       

      rmsteel