Re: Battery or AC?
Re: Battery or AC?
- Subject: Re: Battery or AC?
- From: kai <email@hidden>
- Date: Fri, 3 Nov 2006 08:17:01 +0000
On 3 Nov 2006, at 06:29, Steve Jones wrote:
How can one test in an Applescript if the laptop is running on
battery or AC?
Try something like this, Steve:
----------------
first word of (do shell script "pmset -g | grep '*'")
----------------
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden