Hi there!
I've just been looking around and spotted a Item in documents under VoxKeys 1.0 
in there under shortcuts then global is a [say power ] I think it is a script 
[it's next to the say time one]
So there might be a script to do what you want already there!
How you get it to work is another question!
I think it should be there because I've never put one there myself!
hth Colin

On 28 Jun 2011, at 20:53, Esther wrote:

> Hi Chis,
> 
> I haven't had problems with focus navigation to my status menu bar, with 
> either VO-M-M or Control-F8. If you want to use a keyboard commander 
> AppleScript for VoiceOver to check battery status, Hai Nguyen supplied one to 
> the list last year, and Zack posted a reference to this again more recently a 
> few months ago. Open up the AppleScript Editor and paste this in. Press 
> Command-R to run it (which will also compile it), then save the script.   In 
> VoiceOver Utility (VO-F8) on the "General" panel (Command-1) you should have 
> the box for "Allow VoiceOver to be controlled with AppleScript" checked 
> (VO-Space).  Under the "Commanders" (Command-8) go to the "Keyboard" tab and 
> check the box to "Enable Keyboard Commander".  I used the "Add" key to assign 
> the keyboard key "b".  Under the Command, I used VO-Space to select "Custom 
> Commands" and then "Run AppleScript Script" in the submenu, then chose the 
> saved AppleScript, which I just named "Battery Level".
> 
> Script is appended below my signature, after the "Cut Here" message.  Cheers,
> 
> Esther
> 
> ---Cut here---
> --Author Hai Nguyen Ly November 28, 2010
> (* This Apple script will query for the battery status and speak the output. 
> This script works best when associated with a keyboard shortcut and used in 
> conjunction with VoiceOver. *)
> on isVoiceOverRunningWithAppleScript()
>       set isRunning to true
>       -- is AppleScript enabled on VoiceOver --         
>       tell application "VoiceOver"
>               try
>                       set x to bounds of vo cursor
>               on error
>                       set isRunning to false
>               end try
>       end tell
>       return isRunning
> end isVoiceOverRunningWithAppleScript
> set maxCapacity to do shell script "ioreg -w0 -l | grep \"\\\"MaxCapacity\\\" 
> =\""
> set maxLevel to the last word of maxCapacity
> set curCapacity to do shell script "ioreg -w0 -l | grep 
> \"\\\"CurrentCapacity\\\" = \""
> set curLevel to the last word of curCapacity
> set battPct to round (100 * curLevel / maxLevel)
> set output to "Battery " & battPct & "%"
> if isVoiceOverRunningWithAppleScript() then
>       tell application "VoiceOver"
>               output "Battery " & battPct & "%"
>       end tell
> else
>       say "Battery " & battPct & "%"
> end if
> 
> 
> On Jun 28, 2011, at 07:53, Christopher-Mark Gilland wrote:
> 
>> This is really odd.  Even before pulling the 10.6.8 update, I have noticed 
>> that quite often enough, If I press vo+M twice to go to my status bar, so I 
>> can check my battery, half of the time Voiceover won't move past the first 
>> bit of the menu bar.  The only way I've found to deal with that is to 
>> restart Voiceover.  I've noted this on my macbook, my friend's macbook and 
>> one of my friend's IMacs.  So, this must not be a specific macbook thing 
>> just to my unit or configuration.
>> 
>> I do know about ctrl+F8 to go to the status bar area, I just for what ever 
>> odd reason don't prefer using it.  I'm honestly not sure if the problem 
>> would still occur using that method or not.
>> 
>> Anyway, let me know if any of you have any idea or have expericed the same 
>> thing.  I wonder if an apple script could be made to do like the one does 
>> for saying the time, only have it say the battery.  This way I could just 
>> bind it with keyboard commander to a key, and could check the battery on the 
>> fly.
>> 
>> Chris.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "MacVisionaries" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/macvisionaries?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to