George Coghill

Q: Applescript code to switch printers?

I am trying to automate the printing of postage labels from Safari. My printing is set up with the default printer being my laser printer, but I need to switch to the label printer to print the labels.

 

What Applescript code do I use to do this? I am unable to find this info with a Google search. I thought this would be a pretty standard thing people would be doing.

 

I need AppleScript to invoke the Print sheet, then choose an alternate printer. The printer's default preset is the one I want to use to print. I just need to get AppleScript to choose a different printer since Safari default to the laser printer each time the Print sheet is invoked.

 

Thank you.

MacBook Pro with Retina display, OS X Mavericks (10.9.5)

Posted on Aug 3, 2016 10:59 PM