1 Reply Latest reply on Apr 1, 2012 10:58 PM by John Hawkinson

    packaged InDesign file follow the same name as the folder name?

    greenrookie Level 2

      Hi everyone,

       

      I'm using a modified version of this great script by Mi_D.

       

      My question; I can create a prompt for it to enter a new file name for the packaged folder, but is there a way to have the packaged InDesign file follow the same name as the folder name?

       

      Thnx

       

      GreenRookie

       

      var myDocument = app.activeDocument;
      var myDocName = myDocument.name;

      var myFileNme=prompt("", myDocName, "Please enter new name");
      var myFolder =myDocument.filePath;
      var to = new File(myFolder + "/" + myFileNme + "/");
      var flag = Folder(to).create();
      var copyingFonts = true;
      var copyingLinkedGraphics = true;
      var copyingProfiles = true;
      var updatingGraphics = true;
      var includingHiddenLayers = true;
      var ignorePreflightErrors = true;
      var creatingReport = true;
      var versionComments = "comment";
      var forceSave = true;
      if ( flag === true){
          app.activeDocument.packageForPrint (
                to,
                copyingFonts,
                copyingLinkedGraphics,
                copyingProfiles,
                updatingGraphics,
                includingHiddenLayers,
                ignorePreflightErrors,
                creatingReport,
                versionComments,
                forceSave
               );
      }

      Mi_D