• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
cant get script to run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: cant get script to run
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Startup !
  • Next by Date: Re: Startup !
  • Previous by thread: Re: Copying files via applescript
  • Next by thread: Re: cant get script to run
  • Index(es):
    • Date
    • Thread