• 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: Getting battery state?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting battery state?


  • Subject: Re: Getting battery state?
  • From: bill <email@hidden>
  • Date: Tue, 18 Mar 2003 00:29:24 +0800

On 17/03/2003 23:51, "Mark Butcher" <email@hidden> wrote:

> Curious. On my PowerBook G3, I get:
>
> "Voltage=0
> Flags=1
> Amperage=0
> Capacity=0
> Current=0"
>
> But my battery is 100%. So how come I get all these zeros?

>> do shell script "ioreg -p IODeviceTree -n battery -w 0 | grep
>> IOBatteryInfo
>> | cut -d'{' -f2 | cut -d'}' -f1 | tr -d '\"' | tr , '\n'"
>>

My trial is derived from this post:

<http://www.macintouch.com/pbg4reader19.html#feb25>

About how to interpret the result, ... It's beyond my knowledge :)


Two relevant pages:

<http://www.macosxhints.com/article.php?story=20030311220217671>

<http://www.batteryuniversity.com/parttwo-34.htm>


bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Getting battery state? (From: Mark Butcher <email@hidden>)

  • Prev by Date: Applescripting AOL address Book?
  • Next by Date: RE: Batch MP3 Editing
  • Previous by thread: Re: Getting battery state?
  • Next by thread: Scripting Microsoft Outlook 2001
  • Index(es):
    • Date
    • Thread