Skip to main content
Question

Change cupsctl printer Print Style to 1-sided via script

  • May 4, 2017
  • 4 replies
  • 29 views

Forum|alt.badge.img+3

Hi all,

I would like to run a script which changes the Print Style to 1-sided as per attached.
Has someone already experience with this?

Thanks
Thomas

4 replies

Forum|alt.badge.img+3
  • New Contributor
  • May 4, 2017

I want to know this too.


Forum|alt.badge.img+13
  • Valued Contributor
  • May 5, 2017

You can run

lpoptions -p printername -l

to get a list of options that the printer supports. Then you just need to figure out which one you want to change and set it with

lpadmin -p printername -o option=value

for example

lpadmin -p treedestroyer -o Duplex=none

Forum|alt.badge.img+13
  • Valued Contributor
  • May 5, 2017

by far the easiset way to set print options is to set them up locally, then just copy the " com.apple.print.custompresets" from /Library/Preferences to users


Forum|alt.badge.img+13
  • Valued Contributor
  • May 5, 2017

K.I.S.S :-)