Is it possible to "shut off" battery charging in OSX with an application rather then physically. Could this be done with AppleScript (I doubt it) or will need to be obj-c cocoa application? Essentially my idea is an app that'll shut off the charger when requirements are met (like the computer is in sleep mode, or the battery hasn't been drained in a few days)

  • SMC will manage charger a whole lot better than any human ever could.
    – Alexander
    Jun 12, 2014 at 8:27

1 Answer 1


I don't know I you already tried looking on Google, but this a problem multiple persons have tried to do.

There doesn't seems to be a Public API (yet ?) also no "private" API has been found yet.

Also, as stated in this question, MacBooks have intelligent battery management. This means your laptop will stop charging once the battery is full.

Edit :

Results I found :

  • I know Macbooks have intelligent battery management but Id like to take it a step further. And yes i searched Google but couldnt come up with much. Could you link me to some of these places where other people have talked about doing this and the issues they have faced? I must not be searching the right phrases :)
    – cbalos
    Jun 12, 2014 at 7:53

Not the answer you're looking for? Browse other questions tagged .