Re: Power Supply
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>) |