Re: Mavericks Printer Selection
Re: Mavericks Printer Selection
- Subject: Re: Mavericks Printer Selection
- From: Shane Stanley <email@hidden>
- Date: Wed, 27 Aug 2014 12:54:55 +1000
On 27 Aug 2014, at 11:34 am, Bruce Robertson <email@hidden> wrote:
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.
This ASObjC script might get you closer:
use framework "AppKit"
on testIt() set printerNames to current application's NSPrinter's printerNames() as list set oneName to item -1 of printerNames set thePrinter to current application's NSPrinter's printerWithName:oneName set theType to thePrinter's |type|() as text return {oneName, theType} end testIt
-- Shane Stanley < email@hidden> < www.macosxautomation.com/applescript/apps/> |
_______________________________________________
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