3 Replies Latest reply on May 14, 2015 9:29 PM by s_ashok

    generating package from indesign with out link folder. all the links are moved to root dir.

    s_ashok Level 1

      Hi,

      * i unable to del the link folder

      * i cannot move the linkfiles to the root dir (ex: where the indesign file located)

      * can u any provided example of making zip using indesign script for windows.

      below are scenario.

       

       

      var myDocument = app.activeDocument;

      var docname = myDocument.name;

      var packagePath = myDocument.filePath+"/package/";

      var myDocFolder = new Folder(myDocument.filePath+"/");

      var myPackageFolder = new Folder(packagePath);

      myPackageFolder.create();

      myDocument.packageForPrint(myPackageFolder, false, true, false, true, true, false, false);

       

      var myLinkFolder = new Folder(myPackageFolder+"/Links/");

      var myLinkFiles = myLinkFolder.getFiles();

       

      alert(myLinkFiles);

       

      for(i=0; i<myLinkFiles.length; i++) { var linkfile = new File(myLinkFiles[i]); linkfile.Move(myDocFolder, true); } myPackageFolder.remove();

       

       

       

       

      Please any help me on these.

      thanks in advance

      regards

      Ashok