Is there any method to display the battery menu bar status item with AppleScript? I’ve tried to browse the script library but unable to find one that matches this capability.
I simply want to toggle the state of menu bar item found in System Preferences » Energy Saver » Power Adapter setting. There is no need to build an AppleScript application for it.
Best Answer
Update: This updated script wouldn't flash through the screen, i.e runs in the backgound. The old version is still valid.
From Oct. 18th: