re: activating Speakable Items with AppleScript?
re: activating Speakable Items with AppleScript?
- Subject: re: activating Speakable Items with AppleScript?
- From: Pete Dako <email@hidden>
- Date: Wed, 29 Jan 2003 18:04:48 -0500
Hi and thanks again Barbara....
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" --
here's your script slightly adapted to turnSpeechOn -
tell application "System Preferences" to activate
tell application "System Events"
tell process "System Preferences"
click menu item "Speech" of menu "View" of menu bar 1
delay 3
tell radio group 1 of tab group 1 of tab group 1 of
window "Speech" to click radio button "On"
tell application "System Preferences" to quit
end tell
end tell
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... 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.
As unfortunate as it is, this is a bug in 10.2.3. I took me several
hours to find out, that at the moment it is not possible to have
universal access, speakable items and all the other options in
commands (in the PrefPane "Speech") - exept "General Speakable Items
commands" - enabled together.
In support of that bug report to apple , for what it's worth -- the
only bug (not pertaining to AppleScript) i found using all these
options together is specifically the "Front Window Commands" one,
...in fact, I have either all five checked even now, as well as all
the Universal Access extras and other than the finder window bug
both my machine and your script are running fine.
meanwhile, back to the script- I added that line to quit System
Preferences simply because the script didn't want to just close the
window, at least the way i had written it... :)
best, Pete
_______________________________________________
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.