Anybody know why “listen” works, yet “listen continuously” does not?
specifically, I wrote this script that works like a champ if you remove the word “continuously” (and comment out the remainder of that line, starting at “attach”:
on run {myCommands}
local theResultstring, wordCount, x, WordList, myCommands
set theResultstring to “No Command”
set WordList to (every word of myCommands) as list
tell application “SpeechRecognitionServer”
try
set theResultstring to listen continuously for WordList attach to SpeechRecogRB with identifier MyStdIdentifier
end try
end tell
set wordCount to number of items in WordList
repeat with x from 1 to wordCount
if theResultstring = item x of WordList then
return item x of WordList as string
end if
end repeat
return “Unknown response”
end run