1 Reply Latest reply on Sep 6, 2014 7:46 AM by Sajeev Sridharan

    How can I Place the doc file into the indesign file

    Murali_Vetha Level 1

      Hi,

       

      How can I Place the doc file into the indesign file. Please see my coding

      --------------

      var myfolder = Folder.selectDialog("Select a Indesign Template")

      var myfiles = myfolder.getFiles("*.indd")

      alert(myfiles.length)

      for(i=0; i<myfiles.length; i++)

      {

          app.open(myfiles[i]);

         

          }

      var myfolder1 = Folder.selectDialog("Select a DOC File")

      var myfiles = myfolder.getFiles("*.doc")

      alert(myfiles.length)

      for(i=0; i<myfiles.length; i++)

      {

          app.open(myfiles[i]);

          app.activeDocument.close();

      }

       

      By

      Vetha