• 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: Mavericks Printer Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Mavericks Printer Selection (From: Bruce Robertson <email@hidden>)
 >Re: Mavericks Printer Selection (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Mavericks Printer Selection
  • Next by Date: Re: Mavericks Printer Selection
  • Previous by thread: Re: Mavericks Printer Selection
  • Next by thread: Re: Mavericks Printer Selection
  • Index(es):
    • Date
    • Thread