Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Low battery warning AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Low battery warning AppleScript
Authored by: TinyApps.Org on Dec 27, '09 04:49:56PM
Thanks for the script! Here it is updated for Snow Leopard with the AppleScript typo fixed as well:

rem=`system_profiler SPPowerDataType | grep "Charge remaining" | sed 's/[^0-9]//g'`

if [ "$rem" -lt "800" ]


osascript -e 'tell application "Finder"' -e "activate" -e 'display dialog "Low battery warning"' -e 'end tell'


[ Reply to This | # ]