How to change default settings(a4,color etc.) on print system dialog in macOS programatically

Hello,

I added a printer using lpadmin command.

` lpadmin "-p", "print_queue", "-D", "print queue", "-P", "temp/data/driver.ppd", "-E", "-o", "printer-error-policy=abort-job", "-o", "printer-is-shared=false", "-o", "cupsIPPSupplies=false", "-o", "cupsSNMPSupplies=false", "-o", "ColorModel=Color", "-o", "Media=A3", "-o", "OutputPaperSize=A3"

then I set default printing options for your user account via lpoptions

`lpoptions "-p", "print_queue", "-o", "Duplex=DuplexNoTumble", "-o", "Media=A3"

But still default values in system print dialog are set to a4 and grayscale. Why? Is there any way how to change it to correspond with values set by these commands?

Also tried to change driver files defaults, but again, nothing.

Answered by DTS Engineer in 838303022

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project (if possible) and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.

Accepted Answer

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project (if possible) and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.

FB17744074

Hi, do you have any updates on this one? Feedback was reported two weeks ago.

FB17744074

Thanks,

Vitek

How to change default settings(a4,color etc.) on print system dialog in macOS programatically
 
 
Q