• 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: Wed, 27 Aug 2014 17:52:52 -0700

On Aug 27, 2014, at 5:31 PM, Shane Stanley <email@hidden> wrote:

> On 28 Aug 2014, at 3:51 am, Bruce Robertson <email@hidden> wrote:
>
>> Am I missing something in shell commands or other standard applescript statements that would let me read the user's printer names?
>
> I have no idea about whether there's a suitable shell command, but I don't think there's an AppleScript command. Sounds like a good time to go to bugreport.apple.com and request one.
>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>

Looks like lpstat -l -p does it.

set cmd to "lpstat -l -d -p"
do shell script cmd

result:

"system default destination: DYMO_LabelWriter_330
printer DYMO_LabelWriter_330 is idle.  enabled since Wed Aug 27 17:47:06 2014
	Form mounted:
	Content types: any
	Printer types: unknown
	Description: DYMO LabelWriter 330
	Alerts: none
	Location: miniserver
	Connection: direct
	Interface: /private/etc/cups/ppd/DYMO_LabelWriter_330.ppd
	On fault: no alert
	After fault: continue
	Users allowed:
		(all)
	Forms allowed:
		(none)
	Banner required
	Charset sets:
		(none)
	Default pitch:
	Default page size:
	Default port settings:
printer EPSON_WF_3520_Series is idle.  enabled since Wed Aug 27 17:39:09 2014
	Form mounted:
	Content types: any
	Printer types: unknown
	Description: EPSON WF-3520 Series
	Alerts: none
	Location:
	Connection: direct
	Interface: /private/etc/cups/ppd/EPSON_WF_3520_Series.ppd
	On fault: no alert
	After fault: continue
	Users allowed:
		(all)
	Forms allowed:
		(none)
	Banner required
	Charset sets:
		(none)
	Default pitch:
	Default page size:
	Default port settings:"
 _______________________________________________
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>)
 >Re: Mavericks Printer Selection (From: Shane Stanley <email@hidden>)
 >Re: Mavericks Printer Selection (From: Bruce Robertson <email@hidden>)
 >Re: Mavericks Printer Selection (From: Shane Stanley <email@hidden>)
 >Re: 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: The Future of AppleScript
  • Previous by thread: Re: Mavericks Printer Selection
  • Next by thread: Re: Mavericks Printer Selection
  • Index(es):
    • Date
    • Thread