Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Set Printer Presets from the Terminal Printers
If you want to set the printer preset from the terminal in 10.6 (or from an AppleScript via a 'do shell script' command), it's different than how it's done in previous versions of OS X.

Assuming you have a printer called 'Copy Room Printer' and a preset called 'double-sided, stapled,' you would run the following two commands:
defaults write com.apple.print.custompresets.forprinter.Copy_Room_Printer com.apple.print.lastPresetPref 'double-sided, stapled'

defaults write com.apple.print.custompresets.forprinter.Copy_Room_Printer com.apple.print.lastPresetPrefType 3
Just set the parameters to match your own needs.

[crarko adds: I haven't tested this one. If this works in Lion or you find an equivalent, please post it in the comments.]
    •    
  • Currently 3.17 / 5
  You rated: 4 / 5 (6 votes cast)
 
[4,794 views]  

10.6: Set Printer Presets from the Terminal | 1 comments | Create New Account
Click here to return to the '10.6: Set Printer Presets from the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Set Printer Presets from the Terminal
Authored by: Ortwin Zillgen on Aug 14, '11 03:14:48AM

works



[ Reply to This | # ]