Re: activating Speakable Items with AppleScript?
Re: activating Speakable Items with AppleScript?
- Subject: Re: activating Speakable Items with AppleScript?
- From: Barbara Mueller <email@hidden>
- Date: Thu, 30 Jan 2003 12:33:28 +0100
As well as this script works, now (with System Events 1.2
installed).... I'm a little surprised there isn't just a simple
command like activate "Speech Recognition" or something that
would just make it happen without opening windows and clicking
buttons etc... but in any case, to follow up..
since turning speech off is a lot faster if one just says "quit
speakable items" --
I agree, the last way would be a lot faster. The reason why I prefer
the slow script:
I wrote the scripts for a blind friend as well. And she has to get a
feedback from the computer what it was doing. And this can be
achieved with the "say" command of AppleScripts.
this script works for me now, so long as I ensure that both of the
first tabs "Speech Recognition" and "On/Off" are selected before I
run the script otherwise it won't run...
To avoid this problem you will have to write the script this way:
tell process "System Preferences"
click menu item "Speech" of menu "View" of menu bar 1
delay 1
tell tab group 1 of window "Speech" to click radio button "Speech Recognition"
delay 1
tell tab group 1 of tab group 1 of window "Speech" to click radio
button "On/Off"
delay 1
tell radio group 1 of tab group 1 of tab group 1 of window "Speech"
to click radio button "On"
end tell
i wonder if that's what you mean by this bug or if in fact we could
reference these "Speech Recognition" and "On/Off" tabs within the
script as well(?) That would be better as if I'm going to use
speech recognition at all, I'll usually use them all and only toggle
off/on the "Front Window Commands" because it messes up Finder
operations, closing Finder windows as previously described. However,
outside of this finder problem having those extra speech commands
enabled adds unbelievable amounts of functionality to speech
recognition.
The bug I mentioned is a general problem. As soon as "Speakable
Items" and "Universal Access" and "Front window commands" are enabled
together, Finder windows close immediately. You can also type
"command f" and the window "Find" disappears as well. If you disable
"Front window commands" everything works fine.
Barbara
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.