Re: Battery or AC?
- Subject: Re: Battery or AC?
- From: kai <email@hidden>
- Date: Fri, 3 Nov 2006 08:17:01 +0000
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Reply-To:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=q9K+fH7erh7GEomKXAZKyjlbpCcWZa+S81oljcZuCmNXkbeYiHB4VoM1Mg5a1V0fr+nbJCONlvOOqewyKOnN6bbccFqbDv54lVmXV8sWeviSMJSJLSh6J+lOe0N9eqWYPTnIwxHljIB96vHEOS2T5XnarzVbGSHTRmboAxGGgGY= ;
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:
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
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.