The floating round window associated with Speech Recognition is sometimes annoying and I want to turn it off for few minutes then turn it back on.
I can easily turn off Speech Recognition by using this script:
tell application “SpeakableItems”
But what about turn it back on? I know it is possible to script “System Preferences” but it would be a rather long script that opens the System Prefs, switchs to Speech, then goes to the Speech Recognition tab and finally toggles the On/Off. It takes as long as doing it manually.
Sorry, I just got it. Here is the script to do it:
tell application “Finder”
open file “Macintosh HD:System:Library:Speech:Recognizers:AppleSpeakableItems.SpeechRecognizer:Contents:Resources:SpeakableItems”
(You might have to change the name of the drive that contains the system in the path.)