I have been working on a quick printer setup for my users who are not enrolled in the jss (contractors who byod). Basically I converted the driver installer to source in compser, then in the postinstall script added an lpadmin command to add the printer, and added a command to make chrome use the system print dialogue.
The command is:
defaults write com.google.Chrome DisablePrintPreview -boolean true
when entered into terminal it works, but when run in a script it isn't taking