Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

trey5498

macrumors regular
Original poster
Jun 16, 2008
191
0
by using
Code:
lpadmin -p print-queue -o Duplex=DuplexNoTumble
I can set a printer to default as duplex. However, how to I enable the "Duplex Printing Unit" via the terminal?
 

kryten2

macrumors 65816
Mar 17, 2012
1,070
83
Belgium
http://hints.macworld.com/article.php?story=20120313110411984
http://www.dice.inf.ed.ac.uk/units/user_support/docs/cups-printing.html

lpoptions -p printername -l
Prints PPD options, "Default" is filtered from option name (similar to looking at the raw PPD)
It uses a colon when reporting key value pairs; replace that with an equals sign when specifying an option
The option name stops at the first slash
Example: The duplex option for HP printers will output like this "HPOption_Duplexer/Duplex Unit: *True False"
When specified as a "-o" option it would be "HPOption_Duplexer=True"
 
Last edited:

stare.in.the.ai

macrumors newbie
Feb 20, 2015
1
0
I know it's a bit late, but Google brought me here.

Code:
-o APOptionalDuplexer=True
That did it for me.

I found that out with:
Code:
lpoptions -p printername -l

I'm using
Code:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Resources/Generic.ppd
which is Generic PostScript Printer by the way.
Code:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Resources/GenericPrinter.ppd
is Generic PCL Printer or just Generic Printer.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.