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


Click here to return to the 'Use AppleScript to set default printer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use AppleScript to set default printer
Authored by: rybu0305 on Nov 09, '07 06:51:40AM

This doesn't work in Leopard. Does anyone have an updated script that works with 10.5?



[ Reply to This | # ]
Use AppleScript to set default printer
Authored by: Vincent Gable on Jan 27, '09 01:25:50PM
This woks for me in in Leopard,
tell application "Printer Setup Utility"
   set printerlist to name of printers
   set oldprinter to name of current printer
end tell
set printerchoice to (choose from list printerlist with prompt
   "Which printer to be default?" default items oldprinter)
set myprinter to printer(printerchoice as string)
tell application "Printer Setup Utility" to set current printer to myprinter

You might also be interested in IMLocation, it can change your default printer for you automatically, based on if you are at home, work, etc. It includes an Automator to set the default printer, which you can use in any workflow.

[ Reply to This | # ]