Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Battery or AC?



On 3/11/06 15:27, kai wrote:


On 3 Nov 2006, at 14:01, Mark J. Reed wrote:

I'm confused, kai.


Looking at the results you're getting, I'm not too surprised, Mark. Clearly there's a difference between the results returned from our respective machines - which means that my suggestion can't be considered as a general approach.
[...]


I'm not sure, but I think to remember that pmset's output has been enhanced with 10.4.
Could it be that Mark is on Panther and you on Tiger?


Back to the drawing board, I guess. I wonder if the profiles, etc. are available elsewhere on your machine...


Perhaps the "Flags" info available from ioreg may be of some relevance for Mark's purpose:

   ioreg -w 0 -n battery | grep -A 3 '+-o battery'

In my case, and at this precise moment, Flags has value 1090519045 on AC, and 4 when running on battery.


Just guessing Axel :-)

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Battery or AC? (From: Steve Jones <email@hidden>)
 >Re: Battery or AC? (From: kai <email@hidden>)
 >Re: Battery or AC? (From: kai <email@hidden>)
 >Re: Battery or AC? (From: "Mark J. Reed" <email@hidden>)
 >Re: Battery or AC? (From: kai <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.