Mavericks Printer Selection
Mavericks Printer Selection
- Subject: Mavericks Printer Selection
- From: Bruce Robertson <email@hidden>
- Date: Tue, 26 Aug 2014 18:34:33 -0700
So Printer Setup Utility is gone; and Addprinter.app is not scriptable.
I need to know how to select a printer, given its "human readable" name as defined in System Preferences.
I know how to use shell commands to set a default printer, etc but there is one very important piece missing.
The shell commands refer to the hard-wired name of the printer.
E.g.
Do shell script "lpstat -a"
Result:
"DYMO_LabelWriter_330 accepting requests since Tue Aug 26 17:18:46 2014
EPSON_WF_3520_Series accepting requests since Tue Aug 19 06:51:58 2014"
But those are not the names of my printers as shown by in System Preferences, where they might be:
LabelWriter 330
EPSON WF-3520
I can't find any shell command that can make the association between the CUPS printer name (full name with underscores) and the System Pref printer name.
The lpadmin command can SET that association but no command (that I can find) READS the association.
For instance:
lpadmin -p DYMO_LabelWriter_330 -D "LABELWRITER 330"
Bruce Robertson
_______________________________________________
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