• 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: Power Supply
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Power Supply


  • Subject: Re: Power Supply
  • From: Gnarlodious <email@hidden>
  • Date: Thu, 7 Sep 2006 19:32:44 -0600

Frank Renner wrote:

does anyone know if is it possible to read out the current voltage of
the power supply of an iBook, Powerbook or MacBook?
I don't think it's possible but you can get the battery voltage like this:

do shell script "ioreg -n battery -w 0 |grep IOBatteryInfo | sed
's/^.*Voltage\"=\\(.*\\),\"Flags.*$/Voltage:\\1/' "

You can get more info, just run it without the sed parser.

-- Gnarlie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Power Supply (From: Frank Renner <email@hidden>)

  • Prev by Date: Re: 10.4 Print Options (Save as PDF)
  • Next by Date: Re: Importing/parsing CSV files
  • Previous by thread: Re: Power Supply
  • Next by thread: Re: getting the image file of a mounted disk image
  • Index(es):
    • Date
    • Thread