Can't get package to push out custom printing presets?

cpizanias
Contributor

So I made a printing preset to do single sided printing as highlighted in the screenshot below:
c1ffcbd5c7ce43fba6fe86f9493077df
I found that the preferences lives in /Library/Preferences/com.apple.print.custompresets.plist

However when I package that plist up and try pushing it to other machines it doesn't give the target machine the printing preset for some reason. What am I missing here? Is there a better way to do this?

Thanks in advance for any help you can give!

6 REPLIES 6

donmontalvo
Esteemed Contributor III

Do you need to add killall cfprefsd to the push?

--
https://donmontalvo.com

cpizanias
Contributor

@donmontalvo Tried adding that under "Execute Command" in the Advanced tab of Remote but it didn't work unfortunately.

donmontalvo
Esteemed Contributor III

Might have better luck using defaults to write the values in the file, and follow it with killall cfprefsd.

Apple doesn't want us pushing plist files, if you post the content of the plist maybe we can get you set up with the right defaults commands.

defaults read /Library/Preferences/com.apple.print.custompresets.plist

Then the PKG can use a postinstall script that runs the killall cfprefsd command.

Don

--
https://donmontalvo.com

cpizanias
Contributor
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Single sided print</key>
    <dict>
        <key>com.apple.print.preset.id</key>
        <string>Single sided print</string>
        <key>com.apple.print.preset.settings</key>
        <dict>
            <key>AP_D_InputSlot</key>
            <string></string>
            <key>BackAutoSetup</key>
            <string>True</string>
            <key>BackCoverOption</key>
            <string>None</string>
            <key>BackCoverPage</key>
            <string>False</string>
            <key>BackCoverTray</key>
            <string>None</string>
            <key>BackLRShift</key>
            <string>Right</string>
            <key>BackLRValue</key>
            <string>30</string>
            <key>BackLRValue_2</key>
            <string>30</string>
            <key>BackUDShift</key>
            <string>Down</string>
            <key>BackUDValue</key>
            <string>30</string>
            <key>BackUDValue_2</key>
            <string>30</string>
            <key>Binding</key>
            <string>LeftBinding</string>
            <key>BookletBinding</key>
            <false/>
            <key>BookletType</key>
            <integer>0</integer>
            <key>BoxName</key>
            <string></string>
            <key>BoxNumber</key>
            <string></string>
            <key>CarbonCopyOrder</key>
            <string>Tray</string>
            <key>CarbonCopySet</key>
            <string>False</string>
            <key>CarbonCopyTray1</key>
            <string>False</string>
            <key>CarbonCopyTray2</key>
            <string>False</string>
            <key>CarbonCopyTray3</key>
            <string>False</string>
            <key>CarbonCopyTray4</key>
            <string>False</string>
            <key>CarbonCopyTray6</key>
            <string>False</string>
            <key>CertServerNum</key>
            <string>Device</string>
            <key>CertServerType</key>
            <string>None</string>
            <key>Chapter</key>
            <string>False</string>
            <key>ColorModel</key>
            <string>Gray</string>
            <key>Combination</key>
            <string>None</string>
            <key>CopyProtectOption</key>
            <string>CopyProtect</string>
            <key>CopyProtectSet</key>
            <string>False</string>
            <key>CustomAESEnable</key>
            <string>False</string>
            <key>CustomAESKeyInfo</key>
            <string>B8A14D44693BE14E956303D03EFF60F3</string>
            <key>DateTimeSet</key>
            <string>False</string>
            <key>DtstpDateOption</key>
            <string>Date1</string>
            <key>DtstpPageOption</key>
            <string>All</string>
            <key>DtstpPositionOption</key>
            <string>TopLeft</string>
            <key>DtstpTimeOption</key>
            <string>Time1</string>
            <key>EdgeMatching</key>
            <string>Finish</string>
            <key>FDPage</key>
            <string>None</string>
            <key>Finisher</key>
            <string>None</string>
            <key>Fold</key>
            <string>None</string>
            <key>FrontCoverOption</key>
            <string>None</string>
            <key>FrontCoverPage</key>
            <string>False</string>
            <key>FrontCoverTray</key>
            <string>None</string>
            <key>FrontLRShift</key>
            <string>Right</string>
            <key>FrontLRValue</key>
            <string>30</string>
            <key>FrontLRValue_2</key>
            <string>30</string>
            <key>FrontUDShift</key>
            <string>Down</string>
            <key>FrontUDValue</key>
            <string>30</string>
            <key>FrontUDValue_2</key>
            <string>30</string>
            <key>Fum2</key>
            <dict>
                <key>367</key>
                <dict>
                    <key>Konica_Minolta_367___B_W</key>
                    <dict>
                        <key>TrayListSetting</key>
                        <dict>
                            <key>Auto</key>
                            <dict>
                                <key>MediaType</key>
                                <string>Plain</string>
                            </dict>
                            <key>BypassTray</key>
                            <dict>
                                <key>MediaType</key>
                                <string>Plain</string>
                            </dict>
                            <key>Tray1</key>
                            <dict>
                                <key>MediaType</key>
                                <string>Plain</string>
                            </dict>
                            <key>Tray2</key>
                            <dict>
                                <key>MediaType</key>
                                <string>Plain</string>
                            </dict>
                            <key>Tray3</key>
                            <dict>
                                <key>MediaType</key>
                                <string>Plain</string>
                            </dict>
                            <key>Tray4</key>
                            <dict>
                                <key>MediaType</key>
                                <string>Plain</string>
                            </dict>
                        </dict>
                    </dict>
                </dict>
            </dict>
            <key>FunctionOption</key>
            <string>True</string>
            <key>GraphicDestinationProfile</key>
            <string>Auto</string>
            <key>GraphicScreen</key>
            <string>Auto</string>
            <key>GraphicSmoothing</key>
            <string>Auto</string>
            <key>GraphicSourceProfile</key>
            <string>sRGB</string>
            <key>HFNumberingOption</key>
            <string>Number</string>
            <key>HFNumberingOption_01</key>
            <string>NUMBERONLY</string>
            <key>HFPageOption</key>
            <string>All</string>
            <key>HFPrintInFooterSet</key>
            <string>True</string>
            <key>HFPrintInHeaderSet</key>
            <string>True</string>
            <key>HFRecallOption</key>
            <string>Arbitrary1</string>
            <key>HeaderFooterSet</key>
            <string>False</string>
            <key>HeaderFooterStartNum</key>
            <string>31</string>
            <key>ImageShift</key>
            <string>False</string>
            <key>IsPresetCustom</key>
            <string>True</string>
            <key>JimonAngleOption</key>
            <string>0</string>
            <key>JimonBackPatternOption</key>
            <string>Type1</string>
            <key>JimonBackPatternOption_01</key>
            <string>TYPE1</string>
            <key>JimonCharacter</key>
            <string>true</string>
            <key>JimonCharacterSizeOption</key>
            <string>Normal</string>
            <key>JimonCharacter_01</key>
            <string>NORMAL</string>
            <key>JimonCharacter_02</key>
            <string>EFFECT1</string>
            <key>JimonCharacter_03</key>
            <string>COMPOSITION1</string>
            <key>JimonCharacter_05</key>
            <string>DENSITYN</string>
            <key>JimonCharacter_06</key>
            <string>CONTRASTN</string>
            <key>JimonCharacter_07</key>
            <string>0</string>
            <key>JimonContrastOption</key>
            <string>Normal</string>
            <key>JimonDateOption</key>
            <string>Date1</string>
            <key>JimonDateTimeSet</key>
            <string>False</string>
            <key>JimonDensityOption</key>
            <string>Normal</string>
            <key>JimonEffectOption</key>
            <string>Embossed</string>
            <key>JimonJobIDSet</key>
            <string>False</string>
            <key>JimonNumberingOption</key>
            <string>Number</string>
            <key>JimonNumberingSet</key>
            <string>False</string>
            <key>JimonNumberingStartNumber</key>
            <string>31</string>
            <key>JimonOverWriteOption</key>
            <string>Front</string>
            <key>JimonPattern</key>
            <string>True</string>
            <key>JimonPatternIndex_01</key>
            <string>1</string>
            <key>JimonPatternIndex_02</key>
            <string>0</string>
            <key>JimonPatternIndex_03</key>
            <string>0</string>
            <key>JimonPatternIndex_04</key>
            <string>0</string>
            <key>JimonPatternIndex_05</key>
            <string>0</string>
            <key>JimonPatternIndex_06</key>
            <string>0</string>
            <key>JimonPatternIndex_07</key>
            <string>0</string>
            <key>JimonPatternIndex_08</key>
            <string>0</string>
            <key>JimonPattern_01</key>
            <string>FIXED</string>
            <key>JimonPattern_02</key>
            <string>OFF</string>
            <key>JimonPattern_03</key>
            <string>OFF</string>
            <key>JimonPattern_04</key>
            <string>OFF</string>
            <key>JimonPattern_05</key>
            <string>OFF</string>
            <key>JimonPattern_06</key>
            <string>OFF</string>
            <key>JimonPattern_07</key>
            <string>OFF</string>
            <key>JimonPattern_08</key>
            <string>OFF</string>
            <key>JimonSaveSettings</key>
            <true/>
            <key>JimonSaveSettingsDontShow</key>
            <false/>
            <key>JimonSerialNumberSet</key>
            <string>False</string>
            <key>JimonTextOption</key>
            <string>Fixed1</string>
            <key>JimonTextSet</key>
            <string>True</string>
            <key>JimonTimeOption</key>
            <string>Time1</string>
            <key>KMAuthentication</key>
            <string>False</string>
            <key>KMBorderLine</key>
            <string>False</string>
            <key>KMCollate</key>
            <string>True</string>
            <key>KMDuplex</key>
            <string>Single</string>
            <key>KMInputSlot</key>
            <string>Auto</string>
            <key>KMPunchUnit</key>
            <string>None</string>
            <key>KMSection</key>
            <string>False</string>
            <key>MediaType</key>
            <string>Plain</string>
            <key>NameCertServerType</key>
            <string>None</string>
            <key>NameServerEnable</key>
            <string>None</string>
            <key>NameServerName</key>
            <string></string>
            <key>NameServerPassword</key>
            <string>B8A14D44693BE14E956303D03EFF60F3</string>
            <key>NameServerPopupDontShow</key>
            <false/>
            <key>NameServerProjectCode</key>
            <string></string>
            <key>NameServerProjectPassword</key>
            <string>B8A14D44693BE14E956303D03EFF60F3</string>
            <key>NameServerPublic</key>
            <string>False</string>
            <key>NameServerSaveConfig</key>
            <false/>
            <key>NameServerUserName</key>
            <string>6C61626D696E</string>
            <key>OHPInterOption</key>
            <string>None</string>
            <key>OHPInterleave</key>
            <string>False</string>
            <key>OHPOpTray</key>
            <string>None</string>
            <key>Offset</key>
            <string>False</string>
            <key>OriginalImageType</key>
            <string>Document</string>
            <key>OutputBin</key>
            <string>Auto</string>
            <key>OutputMethod</key>
            <string>Off</string>
            <key>PP-Enable_01</key>
            <string>false</string>
            <key>PP-Enable_02</key>
            <string>false</string>
            <key>PP-Enable_03</key>
            <string>false</string>
            <key>PP-Enable_04</key>
            <string>false</string>
            <key>PP-Enable_05</key>
            <string>false</string>
            <key>PP-Enable_06</key>
            <string>false</string>
            <key>PP-Enable_07</key>
            <string>false</string>
            <key>PP-Enable_08</key>
            <string>false</string>
            <key>PP-Enable_09</key>
            <string>false</string>
            <key>PP-Enable_10</key>
            <string>false</string>
            <key>PP-Enable_11</key>
            <string>false</string>
            <key>PP-Enable_12</key>
            <string>false</string>
            <key>PP-Enable_13</key>
            <string>false</string>
            <key>PP-Enable_14</key>
            <string>false</string>
            <key>PP-Enable_15</key>
            <string>false</string>
            <key>PP-Enable_16</key>
            <string>false</string>
            <key>PP-Enable_17</key>
            <string>false</string>
            <key>PP-Enable_18</key>
            <string>false</string>
            <key>PP-Enable_19</key>
            <string>false</string>
            <key>PP-Enable_20</key>
            <string>false</string>
            <key>PP-Enable_21</key>
            <string>false</string>
            <key>PP-Enable_22</key>
            <string>false</string>
            <key>PP-Enable_23</key>
            <string>false</string>
            <key>PP-Enable_24</key>
            <string>false</string>
            <key>PP-Enable_25</key>
            <string>false</string>
            <key>PP-Enable_26</key>
            <string>false</string>
            <key>PP-Enable_27</key>
            <string>false</string>
            <key>PP-Enable_28</key>
            <string>false</string>
            <key>PP-Enable_29</key>
            <string>false</string>
            <key>PP-Enable_30</key>
            <string>false</string>
            <key>PP-Enable_31</key>
            <string>false</string>
            <key>PP-Enable_32</key>
            <string>false</string>
            <key>PP-InputSlot</key>
            <string>Same</string>
            <key>PP-PrintType</key>
            <string>Same</string>
            <key>PP-StapleSet</key>
            <string>Same</string>
            <key>PageCoverOption</key>
            <string>All</string>
            <key>PageCoverOption_01</key>
            <string>ALLPAGES</string>
            <key>PageCoverSet</key>
            <string>True</string>
            <key>PageNumStartNum</key>
            <string>31</string>
            <key>PageNumStartPage</key>
            <string>31</string>
            <key>PageNumber</key>
            <string></string>
            <key>PageNumberSet</key>
            <string>False</string>
            <key>PagePositionOption</key>
            <string>BottomCenter</string>
            <key>PaperInfoIsSuggested</key>
            <true/>
            <key>PaperSources</key>
            <string>None</string>
            <key>PerPageSetting</key>
            <string>False</string>
            <key>PhotoDestinationProfile</key>
            <string>Auto</string>
            <key>PhotoScreen</key>
            <string>Auto</string>
            <key>PhotoSmoothing</key>
            <string>Auto</string>
            <key>PhotoSourceProfile</key>
            <string>sRGB</string>
            <key>Point4Character</key>
            <string>False</string>
            <key>PopupAccountTrack</key>
            <string>False</string>
            <key>PopupAuthentication</key>
            <string>False</string>
            <key>PopupSecureMode</key>
            <string>ID</string>
            <key>PopupSecurePrint</key>
            <string>False</string>
            <key>PrinterHDD</key>
            <string>True</string>
            <key>ProfileList</key>
            <string>RGBColor</string>
            <key>ProfileLocation</key>
            <string>Disk</string>
            <key>PublicUserAccess</key>
            <string>True</string>
            <key>PunchOption</key>
            <string>None</string>
            <key>PunchSet</key>
            <string>False</string>
            <key>PwdCopyKey</key>
            <string>B8A14D44693BE14E956303D03EFF60F3</string>
            <key>Rotate180</key>
            <string>False</string>
            <key>SectionKey</key>
            <string>B8A14D44693BE14E956303D03EFF60F3</string>
            <key>SectionName</key>
            <string></string>
            <key>SecureKey</key>
            <string>B8A14D44693BE14E956303D03EFF60F3</string>
            <key>SecureName</key>
            <string></string>
            <key>SecurePrintOnly</key>
            <string>False</string>
            <key>SelectColor</key>
            <string>Grayscale</string>
            <key>ShouldPrintAllPDE</key>
            <string>False</string>
            <key>SimulationProfile</key>
            <string>None</string>
            <key>StapleOption</key>
            <string>None</string>
            <key>StapleSet</key>
            <string>False</string>
            <key>SupportPageSize</key>
            <string>Off</string>
            <key>TextDestinationProfile</key>
            <string>Auto</string>
            <key>TextScreen</key>
            <string>Auto</string>
            <key>TextSourceProfile</key>
            <string>sRGB</string>
            <key>TonerSave</key>
            <string>False</string>
            <key>TrayListSaveConfig</key>
            <string>True</string>
            <key>UserKey</key>
            <string>B8A14D44693BE14E956303D03EFF60F3</string>
            <key>UserName</key>
            <string>6C61626D696E</string>
            <key>UserPublicKey</key>
            <string>4A9FC20BDF882F9CF86D432B69D69437</string>
            <key>UserType</key>
            <string>Private</string>
            <key>com.apple.print.PageToPaperMappingMediaName</key>
            <string>8.5x11</string>
            <key>com.apple.print.PageToPaperMappingType</key>
            <integer>1</integer>
            <key>com.apple.print.PrintSettings.PMCopies</key>
            <integer>1</integer>
            <key>com.apple.print.PrintSettings.PMCopyCollate</key>
            <true/>
            <key>com.apple.print.PrintSettings.PMDestinationType</key>
            <integer>1</integer>
            <key>com.apple.print.PrintSettings.PMFirstPage</key>
            <integer>1</integer>
            <key>com.apple.print.PrintSettings.PMLastPage</key>
            <integer>2147483647</integer>
            <key>com.apple.print.PrintSettings.PMLayoutColumns</key>
            <integer>1</integer>
            <key>com.apple.print.PrintSettings.PMLayoutRows</key>
            <integer>1</integer>
            <key>com.apple.print.PrintSettings.PMPageRange</key>
            <array>
                <integer>1</integer>
                <integer>2147483647</integer>
            </array>
            <key>com.apple.print.PrintSettings.PMPrintSelectionOnly</key>
            <false/>
            <key>com.apple.print.subTicket.paper_info_ticket</key>
            <dict>
                <key>PMPPDPaperCodeName</key>
                <string>8.5x11</string>
                <key>PMPPDTranslationStringPaperName</key>
                <string>8 1/2x11</string>
                <key>PMTiogaPaperName</key>
                <string>8.5x11</string>
                <key>com.apple.print.PaperInfo.PMDisplayName</key>
                <string>na-letter</string>
                <key>com.apple.print.PaperInfo.PMPPDPaperDimension</key>
                <array>
                    <integer>0</integer>
                    <integer>0</integer>
                    <real>612</real>
                    <real>792</real>
                </array>
                <key>com.apple.print.PaperInfo.PMPaperName</key>
                <string>8 1/2x11</string>
                <key>com.apple.print.PaperInfo.PMUnadjustedPageRect</key>
                <array>
                    <integer>0</integer>
                    <integer>0</integer>
                    <real>768</real>
                    <real>588</real>
                </array>
                <key>com.apple.print.PaperInfo.PMUnadjustedPaperRect</key>
                <array>
                    <real>-12</real>
                    <real>-12</real>
                    <real>780</real>
                    <real>600</real>
                </array>
                <key>com.apple.print.PaperInfo.ppd.PMPaperName</key>
                <string>8.5x11</string>
                <key>com.apple.print.ticket.type</key>
                <string>com.apple.print.PaperInfoTicket</string>
            </dict>
            <key>com.apple.print.ticket.type</key>
            <string>com.apple.print.PrintSettingsTicket</string>
        </dict>
    </dict>
    <key>com.apple.print.customPresetNames</key>
    <array>
        <string>Single sided print</string>
    </array>
</dict>
</plist>

dpoulo
New Contributor

Following...also struggling with this.

jamestoher
New Contributor III

I'm reading below that presets are stored in ~/Library/Preferences with the name com.apple.print.custompresets.forprinter.<name>.plist

See discussion here:
https://apple.stackexchange.com/questions/171198/copying-printer-preset-plist-files-mavericks

So populate home directories with FUT/FEU when you deploy. Makes sense, as a per-user setting.