Stupid ApploeScript Question: Turning off, then on Speech

Discussion in 'Mac Programming' started by patrick0brien, Feb 23, 2007.

  1. macrumors 68040

    patrick0brien

    Joined:
    Oct 24, 2002
    Location:
    The West Loop
    #1
    -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
     
  2. macrumors 6502a

    lancestraz

    Joined:
    Nov 27, 2005
    Location:
    RI
    #2
    I'm not sure I understand...
    Why don't you have Speech Recognition on all the time.
     
  3. thread starter macrumors 68040

    patrick0brien

    Joined:
    Oct 24, 2002
    Location:
    The West Loop
    #3
    -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.
     
  4. macrumors 6502a

    lancestraz

    Joined:
    Nov 27, 2005
    Location:
    RI
    #4
    OK, try this script.
     
  5. thread starter macrumors 68040

    patrick0brien

    Joined:
    Oct 24, 2002
    Location:
    The West Loop
    #5
    lancestraz

    Oh, VERY cool! You are the man. What is that, java?
     
  6. macrumors 6502a

    lancestraz

    Joined:
    Nov 27, 2005
    Location:
    RI
    #6
    GUI Applescript.
    Glad you like it. :)
     

Share This Page