OK let me make this a bit clearer.
IN the MacOS there is a system wide scripting language called AppleScript.
You can use it to automate actions in various programs or as in this case
create scripts to have VoiceOVer perform actions.
tell application "VoiceOver"
output "Hello World"
end tell
In this example the script tells VoiceOver to say the string "Hello World"
as if it had encountered it on the screen.
On Sunday, 20 July 2014 14:08:41 UTC-7, Tyler wrote:
>
> Hello, this is a tidbit for those of you interested in developing for OSX,
>
> I have dug through tons of documentation on VoiceOver accessibility and
> submitted several support tickets to apple for assistance and I finally
> wrote this function I thought I’d share with everybody:
>
> -(void)speakString:(NSString *)stringToSpeak
> fromFocusedUIElement:(id)object
> {
> NSDictionary *announcementInfo = [[NSDictionary alloc]
> initWithObjectsAndKeys:stringToSpeak, NSAccessibilityAnnouncementKey,
> @“High", NSAccessibilityPriorityKey, nil];
> NSAccessibilityPostNotificationWithUserInfo(object,
> NSAccessibilityAnnouncementRequestedNotification, announcementInfo);
> }
>
> This could easily be expanded on, for instance we could include in this
> function a way to tell the object that currently has keyboard focus to
> assure that VoiceOver always speaks the string as opposed to you having to
> figure it out. We could also add a NSAccessibilityLayoutChanged
> notification to refresh the braille display (Although in some very bizarre
> cases this causes VoiceOver to speak twice (once with the announcement,
> once for the layout change). In other cases the announcement interrupts the
> layout change notification or visa versa, I have yet to figure that bit
> out.
>
> However I felt like this code snippet could do some people good, so there
> it is.
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.