4 Replies Latest reply on Jun 17, 2015 10:39 AM by sergio-as

    Script for printing 3 copies not working


      At my workplace we have to print a lot of Illustrator documents on a daily basis. Some documents are required to be printed 3 times, one copy for our company, one copy for the delivery address and one copy for the billing address. Each time 3 copies are required, I have to open the print dialog, enter "3" in the number of copies field and click print. It would be great if I could have a script, which would immediately print 3 copies. I could even execute it through an action which I could assign a keyboard shortcut to. I came up with the script below:


      var doc = documents[0];

      var printOptions = new PrintOptions();

      printOptions.copies = 3;



      Unfortunately, when I run this script, only 1 copy of the active document will print an not 3 copies as intended. I can't figure out where the problem is. What am I doing wrong? Any help would be appreciated.