property curVoice : false
on run
if curVoice then
set myVoice to "Alex"
else
set myVoice to "Fred"
end if
set curVoice to not curVoice
tell application "VoiceOver Utility"
activate
tell application "System Events" to tell process "VoiceOver Utility"
select row 3 of table 1 of scroll area 1 of window "VoiceOver Utility"
select radio button "Voices" of tab group 1 of group 1 of window "VoiceOver Utility"
click pop up button 1 of tab group 1 of group 1 of window "VoiceOver Utility"
click menu item myVoice of menu 1 of pop up button 1 of tab group 1 of group 1 of window "VoiceOver Utility"
click button 1 of window "VoiceOver Utility"
end tell
end tell
end run
On 2010-11-14, at 7:25 PM, Brian Christmas wrote:
On 15/11/2010, at 10:00 AM, André Renault wrote:
Brian, I'm trying to set the voice for VO and your script doesn't seem to work within the context.
On 2010-11-14, at 5:46 PM, Brian Christmas wrote:
G'day André
I think the easiest way will be to open the VoiceOver Utility and GUI it. It's fairly fast, and the script could be amended to run as two apps, each with a different voice, and each in the dock. Just click on the one you want to run.
tell application "VoiceOver Utility"
activate
tell application "System Events" to tell process "VoiceOver Utility"
select row 3 of table 1 of scroll area 1 of window "VoiceOver Utility"
select radio button "Voices" of tab group 1 of group 1 of window "VoiceOver Utility"
click pop up button 1 of tab group 1 of group 1 of window "VoiceOver Utility"
click menu item "Fred" of menu 1 of pop up button 1 of tab group 1 of group 1 of window "VoiceOver Utility"
click button 1 of window "VoiceOver Utility"
end tell
end tell
Regards
Santa
And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably
Sri Aurobindo
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives:
http://lists.apple.com/archives/applescript-users
This email sent to email@hidden