Re: Mavericks Printer Selection
Re: Mavericks Printer Selection
- Subject: Re: Mavericks Printer Selection
- From: Bruce Robertson <email@hidden>
- Date: Tue, 26 Aug 2014 21:55:47 -0700
On Aug 26, 2014, at 7:54 PM, Shane Stanley <email@hidden> wrote:
> 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/>
>
Returns nothing when I attempt to run it.
But then - not having fiddled much with ASObjC - how should I attempt to run it.
When entered into Applescript Editor as shown; and then click run; it compiles OK but produces an empty result.
_______________________________________________
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