• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shell script - duplex printing prefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell script - duplex printing prefs


  • Subject: Re: shell script - duplex printing prefs
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 31 Mar 2007 20:39:36 +0200

On 29/03/07 16:13, Nick Hearn wrote:

Hi There,

Using the follow shell command a script can change the default paper size selected:-

do shell script "defaults write com.apple.print.PrintingPrefs DefaultPaperID iso-a4"

Please can someone tell me if it's possible to turn on duplexing in a similar way.



Assuming a preset "Test" already exists, you could do something like this:

tell application "System Events"
tell property list file (path of file "com.apple.print.custompresets.plist" of preferences folder)
-- Set duplexing of preset "Test" to wanted value.
set value of property list item "com.apple.print.PrintSettings.PMDuplexing" of property list item "com.apple.print.preset.settings" of property list item "Test" to 2
-- Make sure preset "Test" is selected.
set value of property list item "com.apple.print.lastPresetPref" to "Test"
end tell
end tell



HTH, Axel _______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: shell script - duplex printing prefs
      • From: Luther Fuller <email@hidden>
References: 
 >shell script - duplex printing prefs (From: Nick Hearn <email@hidden>)

  • Prev by Date: Re: Return PDF default reader
  • Next by Date: Re: shell script - duplex printing prefs
  • Previous by thread: shell script - duplex printing prefs
  • Next by thread: Re: shell script - duplex printing prefs
  • Index(es):
    • Date
    • Thread