Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DenY

macrumors newbie
Original poster
Jun 21, 2022
3
0
Hi all,
I'm new to Applescript. I've started doing some reading, but I haven't found many scripts to pull from regarding printing.
My goal:
Print a PDF from from Acrobat, 25 copies @ 95% scale, with a 1 minute delay between each print.

(Yes, it probably sounds crazy, but if I send all 25 copies at once the printer jams instantly. I have 10,000 sheets to print and I'm hoping I can avoid doing this manually.)

This is all I have so far. It pulls up the dialog box for printing, but that's it.
Code:
tell application "Adobe Acrobat" to print ("/Users/dennis/Desktop/Eyewear.pdf")

If anyone has direction to share I'd greatly appreciate it.
Thanks!
Dennis
 

kryten2

macrumors 65816
Mar 17, 2012
1,115
99
Belgium
You can try in the Terminal application :

Bash:
for ((i=1;i<=25;i++));do
   lpr -o scaling=95 /Users/dennis/Desktop/Eyewear.pdf
   sleep 60
done
 

DenY

macrumors newbie
Original poster
Jun 21, 2022
3
0
You can try in the Terminal application :

Bash:
for ((i=1;i<=25;i++));do
   lpr -o scaling=95 /Users/dennis/Desktop/Eyewear.pdf
   sleep 60
done
Hi kryten2,
Thanks so much for taking time to tackle this! At first I didn't think it would work since it was taking Acrobat's print settings out of the picture, but I'm getting what I need. I did make a little work around (since I don't know what I'm doing).
Bash:
for ((i=1;i<=1;i++));do
   lpr -o scaling=95 /Users/dennis/Desktop/Eyewear.pdf
   sleep 60
done

I had to change the 25 to 1 as it was print 25 copies immediately (I needed 1 copy, wait 60 seconds, then repeat 25 times). So I just pasted the above into Terminal 25 times. Its working!

Again, much appreciated. This will make life such so much less.
-D
 

DenY

macrumors newbie
Original poster
Jun 21, 2022
3
0
Imho that would likely occur when you left out sleep.
It should take at least 25 minutes to complete the loop.

The thing we were trying to avoid. What the snippet should do.

Not like intended.
Well, its doing a much better job than what I had before. So I'm happy to have it even if its not perfect.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.