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: "Adam Bell" <email@hidden>
- Date: Sat, 18 Mar 2006 17:35:33 -0400
A left over from when I was trying to discover which of the voices
worked and which didn't, the rest of the script built two lists - those
I heard and those that failed. Forgot to take the try block out after Jon P and Bill C made it clear how to get all of them to work.
Adam
On 3/18/06, Paul Berkowitz <email@hidden> wrote:
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 (
--
Some minds remain open long enough for a truth to both enter and leave without processing.
_______________________________________________
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