Re: Say command using "Organ" doesn't work
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