Brian, You can create an Apple script using the following and bind it to a keyboard shortcut using the keyboard commander in VoiceOver utilities. I don’t remember if this list is set up to accept attachments, but I’ve included a copy of the script just in case. set cmd to "/usr/bin/pmset -g batt | grep -Eo '[0-9]{2,3}%'" set batteryLevel to (do shell script cmd) set cmd to "/usr/bin/pmset -g batt | grep -Eo '(charged)|(charging)|(discharging)'" set batteryStatus to (do shell script cmd) if batteryStatus = "charged" then set batteryStatus to "fully charged" end if set message to batteryLevel & ", " & batteryStatus tell application "VoiceOver" to output message Hai The following information is important for all members of the Mac Visionaries list. If you have any questions or concerns about the running of this list, or if you feel that a member's post is inappropriate, please contact the owners or moderators directly rather than posting on the list itself. Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at: mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at caraqu...@caraquinn.com The archives for this list can be searched at: http://www.mail-archive.com/macvisionaries@googlegroups.com/ --- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To unsubscribe from this group and stop receiving emails from it, send an email to macvisionaries+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/macvisionaries/98C75EB0-A7DE-49A1-AB8D-8044930576AD%40gmail.com. |
Battery.scpt
Description: Binary data
The following information is important for all members of the Mac Visionaries list. If you have any questions or concerns about the running of this list, or if you feel that a member's post is inappropriate, please contact the owners or moderators directly rather than posting on the list itself. Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at: mk...@ucla.edu and your owner is Cara Quinn - you can reach Cara at caraqu...@caraquinn.com The archives for this list can be searched at: http://www.mail-archive.com/macvisionaries@googlegroups.com/ --- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To unsubscribe from this group and stop receiving emails from it, send an email to macvisionaries+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/macvisionaries/98C75EB0-A7DE-49A1-AB8D-8044930576AD%40gmail.com. |