Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.7: Install the new voices' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Install the new voices
Authored by: datasmid on Mar 06, '12 10:47:18AM
I use this script within the app Read4Me to help install the voices... ------ cut here ----

set osver to system version of (system info)
if osver is equal to "10.6.8" then
	display dialog ("Downloading voices is only available in OS X Lion")
else
	
	tell application "System Preferences"
		activate
		reveal (pane id "com.apple.preference.speech")
	end tell
	
	try
		tell application "System Events"
			click radio button 2 of tab group 1 of window 1 of process "System Preferences"
			repeat until (exists pop up button of tab group 1 of window 1 of process "System Preferences")
				delay 0.2
			end repeat
			delay 0.2
			click pop up button 1 of tab group 1 of window 1 of process "System Preferences"
			delay 0.2
			click menu item -1 of menu 1 of pop up button of tab group 1 of window 1 of process "System Preferences"
			delay 0.2
		end tell
	on error
		
		tell application "System Preferences"
			activate
			reveal (pane id "com.apple.preference.universalaccess")
		end tell
		tell me to set myruntimelocalizedString to localized string of "Enable access for assistive devices, then try again."
		display dialog (myruntimelocalizedString)
	end try
end if
[code]


[ Reply to This | # ]