I have this piece of code, which i have made to test before including more, and wonderingwhere i went wrong with it:
say "Would you like me to check for viruses on the system?"
tell application "SpeechRecognitionServer"
listen for "yes"
if text is "yes" then say "right away sir!"
end if
end tell
Basically, the script will run when i lock and unlock the macbook, and i'd like the speech rec server to listen for a yes.
But i just doesn't register what i say, and times out on default.
Do i have to include the yes text in the folder of global commands folder, or is there something really wrong in the above code?
Thanks for some enlightement
Yuma