Editing .plist
Hi, I'd like to control the printing system in 10.3 without having to select options in the print dialog boxes. I already have all of my print settings stored as a custom profile named 'CoverPrint2'. This profile is stored in
Library/preferences/com.apple.print.custompresets.plist
and here is what the file contains (well, the important part anyway):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CoverPrint</key>
<dict>
<key>com.apple.print.preset.id</key>
<string>CoverPrint2</string>
<key>com.apple.print.preset.settings</key>
<dict>
<key>com.apple.print.PrintSettings.PMCopies</key>
<integer>88</integer>
Okay - still with me? What I really want to do is to be able to enter a command of the form
defaults write xxxx
to enable me to change the
PMCopies
property. Then, I can have control ver the default number of copies printed. Anyone know the command I should use? Thanks in advance
Library/preferences/com.apple.print.custompresets.plist
and here is what the file contains (well, the important part anyway):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CoverPrint</key>
<dict>
<key>com.apple.print.preset.id</key>
<string>CoverPrint2</string>
<key>com.apple.print.preset.settings</key>
<dict>
<key>com.apple.print.PrintSettings.PMCopies</key>
<integer>88</integer>
Okay - still with me? What I really want to do is to be able to enter a command of the form
Code:
defaults write xxxx
to enable me to change the
Code:
PMCopies
property. Then, I can have control ver the default number of copies printed. Anyone know the command I should use? Thanks in advance