Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.