• 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: Say command using "Organ" doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Say command using "Organ" doesn't work


  • Subject: Re: Say command using "Organ" doesn't work
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 18 Mar 2006 13:30:24 -0800
  • Thread-topic: Say command using "Organ" doesn't work

Title: Re: Say command using "Organ" doesn't work
On 3/18/06 1:17 PM, "Adam Bell" <email@hidden> wrote:

try
    say "This is a sample of " & tVoice using tVoice
on error theError
    display dialog theError
end try

I've often wondered what the point of this type of try/error block at the very end of a script might be. I use a try/error block if I want to do something else on error, or if I want to be able to branch to different alternatives depending on the error number. (E.g. if the user cancels, i.e. error number is -128, don't do anything, otherwise display the error AND number.) Or to trap an error midway through a script, and return after displaying some information in addition to the error message. But if you're just going to display the error message in a display dialog anyway, why bother putting it in a try block? Why not just let it error?

--
Paul Berkowitz
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Say command using "Organ" doesn't work
      • From: "Adam Bell" <email@hidden>
References: 
 >Re: Say command using "Organ" doesn't work (From: "Adam Bell" <email@hidden>)

  • Prev by Date: Re: Say command using "Organ" doesn't work
  • Next by Date: Re: Say command using "Organ" doesn't work
  • Previous by thread: Re: Say command using "Organ" doesn't work
  • Next by thread: Re: Say command using "Organ" doesn't work
  • Index(es):
    • Date
    • Thread