Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Script for printing 3 copies not working

$
0
0

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;

doc.print(printOptions);

 

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.


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>