• 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: 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

  • Follow-Ups:
    • Re: Mavericks Printer Selection
      • From: Bruce Robertson <email@hidden>
References: 
 >Mavericks Printer Selection (From: Bruce Robertson <email@hidden>)

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