PDA

View Full Version : Stupid ApploeScript Question: Turning off, then on Speech




patrick0brien
Feb 23, 2007, 01:24 PM
-All

I use the Speech capabilities in my Mini Core Solo to control my lights, and every 24 hours or so, the speech 'scrams' and I'd either need to go into the control panel and turn it off, and back on manually, or, as I do now, recycle the whole machine.

Does anybody know the command I can use to just have an AppleScript cycle the Speech control?

Something like

tell application "Speech"
disable
delay 1
enable
end tell



lancestraz
Feb 23, 2007, 03:57 PM
I'm not sure I understand...
Why don't you have Speech Recognition on all the time.

patrick0brien
Feb 23, 2007, 05:01 PM
-lancestraz

Sorry I wasn't more clear.

I'd love to leave it on, but after about 24 hours, it freaks out - stops listening. So I need to restart the process. I'd rather do that through a script than a full restart, but right now I don't have the choice.

lancestraz
Feb 23, 2007, 07:26 PM
OK, try this (http://lime.quickshareit.com/share/restartspeecheceb4.zip) script.

patrick0brien
Feb 23, 2007, 08:07 PM
OK, try this (http://lime.quickshareit.com/share/restartspeecheceb4.zip) script.

lancestraz

Oh, VERY cool! You are the man. What is that, java?

lancestraz
Feb 23, 2007, 08:11 PM
lancestraz

Oh, VERY cool! You are the man. What is that, java?
GUI Applescript.
Glad you like it. :)