cant get script to run
cant get script to run
- Subject: cant get script to run
- From: Brian Dent <email@hidden>
- Date: Wed, 09 Jun 2004 10:14:20 -0700
I found this script at
developer.apple.com/ue/speech/applescript.html
tell application "SpeechRecognitionServer"
local theResultstring, helpLanguageModel, choicesLanguageModel
set helpLanguageModel to {"help", "help me", "what can i say"}
set choicesLanguageModel to {"iMac", "iBook", "PowerMac"}
set thePrompt to "What is your [[emph +]] favorite Macintosh?"
try
set theResultstring to listen for choicesLanguageModel & helpLanguageModel with prompt thePrompt giving up after 30
if theResultstring is "iMac" then
say "I like that [[emph +]] too!"
else if theResultstring is "iBook" then
say "The iBook is [[emph +]] cool"
else if theResultstring is "PowerMac" then
say "[[emph +]]Wow. You must be a professional."
else if theResultstring is in helpLanguageModel then
tell me to doHelp()
end if
end try
end tell
on doHelp()
say "I would really like to help you but I cannot."
end doHelp
but when i run i never hear the prompt and there is no indication that it actually ran.
I cut and pasted from the site into script editor.
Has ne 1 seen this happen before.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.