i think i'm not doing right, have...
tell application "speechrecognitionserver" timeout of (1.0e+9 * 100000000) seconds set theresponse listen text returned of {say "what have type you?"} timeout of 30 seconds end timeout tell application "system events" keystroke (theresponse) end tell end timeout end tell i want let applescript type say, if "hello", applescript type "hello" etc
you can't speechrecognitionserver there's workaround using dictation in mountain lion , higher.
enable dictation , run this, shows dialog text field "listener", after finishing dictation press return. textedit opened , text typed.
say "what have type you?" using "alex" set theresponse text returned of (display dialog "press 'fn' twice , speak!" default answer "" buttons {"cancel", "ok"} default button 2) activate application "textedit" tell application "system events" keystroke theresponse
Comments
Post a Comment