Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there a way to write a custom apple script or any other way to get a Alert or Desktop notification when the battery on my Macbook Pro reaches a certain percentage of charge?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

This app is a free replacement for the standard battery menu bar item, and it includes the ability to set notifications (in Notification Center) when the battery hits certain percentages.

Alternatively, if you want to rig your own solution, you can get charging status and percentage from running pmset -g batt in the shell. You'd need to poll it rather than getting notified however. If you're comfortable with programming, the IOPowerSources API looks like it can do notifications when the battery/charging status changes, but obviously that's more involved.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.