1 Reply Latest reply on May 18, 2014 11:01 AM by Jump_Over

    Print and Save

    creativejoan0425 Level 1

      If I have 2 opened documents, I want to print and then save, but I found if I put aDoc.close(SaveOptions.no);, it will not print the second file, how can I make it to print one document and close that document and then print second document ......

      myTest();

      alert("Finished");

       

      function myTest(){

          for (i=0; i<app.documents.length; i++) {

        var aDoc = app.documents[i];

              if (aDoc.printPreferences.pageRange != ""){

                  alert("a");

                  aDoc.print(true);

               //   aDoc.close(SaveOptions.no);

                        }

            }

        }