• 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: how can I get 'Printer is accepting jobs' property, please?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I get 'Printer is accepting jobs' property, please?


  • Subject: Re: how can I get 'Printer is accepting jobs' property, please?
  • From: Ron Reuter <email@hidden>
  • Date: Thu, 23 Oct 2014 08:38:46 -0500

Well, it's not pretty, but since you've already dirtied your hands with do shell script :-), why not continue in that vein...
You can pipe the results to awk, and by providing the correct "column number", filter out the chunk of text you need.
Hopefully someone will have a better answer.

lpoptions -p Photosmart_C4700_series | awk '{print $35}'

==> printer-is-accepting-jobs=true

• Ron

Do not post admin requests to the list. They will be ignored. applescriptobjc-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: how can I get 'Printer is accepting jobs' property, please?
      • From: Brian Christmas <email@hidden>
References: 
 >how can I get 'Printer is accepting jobs' property, please? (From: Brian Christmas <email@hidden>)

  • Prev by Date: how can I get 'Printer is accepting jobs' property, please?
  • Next by Date: Re: how can I get 'Printer is accepting jobs' property, please?
  • Previous by thread: how can I get 'Printer is accepting jobs' property, please?
  • Next by thread: Re: how can I get 'Printer is accepting jobs' property, please?
  • Index(es):
    • Date
    • Thread