Last active
December 31, 2015 12:59
-
-
Save stefanschmidt/7989721 to your computer and use it in GitHub Desktop.
Set system-wide default paper size for printing via CLI on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get current default paper size (probably empty) | |
defaults read /Library/Preferences/org.cups.PrintingPrefs DefaultPaperID | |
# set paper size for all users to DIN A4 | |
sudo defaults write /Library/Preferences/org.cups.PrintingPrefs DefaultPaperID iso-a4 | |
# remove the default paper size setting | |
sudo defaults delete /Library/Preferences/org.cups.PrintingPrefs DefaultPaperID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment