• 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
Re: cant get script to run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cant get script to run


  • Subject: Re: cant get script to run
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 09 Jun 2004 11:08:20 -0700

On 6/9/04 10:14 AM, "Brian Dent" <email@hidden> wrote:

> 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.

When I do what the webpage says:

The speech recognition server does not appear in the applications list in
Script Editor when you try to open a dictionary. Instead, you must navigate
to the application, whose path is:
/System/Library/Frameworks/Carbon.framework/Frameworks/SpeechRecognition.fra
mework/Resources/SpeechRecognitionServer.app

the script then compiles. When I run it, I do get the prompt, plus a
funny-looking widget on-screen (evidently the app), but it never seems to
hear me, and gives up after 30 seconds.. I know my mike is working OK
because it does so with iSight.

--
Paul Berkowitz

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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: Laine Lee <email@hidden>
References: 
 >cant get script to run (From: Brian Dent <email@hidden>)

  • Prev by Date: Re: Startup !
  • Next by Date: Re: Curl
  • Previous by thread: cant get script to run
  • Next by thread: Re: cant get script to run
  • Index(es):
    • Date
    • Thread