Re: Trapping timeout errors
Re: Trapping timeout errors
- Subject: Re: Trapping timeout errors
- From: David Simerly <email@hidden>
- Date: Wed, 05 Sep 2001 14:51:36 -0700
- Url: http://www.digital-native.com
on 9/5/01 11:53 AM, Mike Warren at email@hidden wrote:
>
Is there a safe way to trap those errors and either exit the try
>
block or send the equivalent of "do nothing" without displaying an error
>
message?
try
tell app "Claris Emailer"
do {this, that, and, the, other}
end
on error err_msg number err_num
if err_num is not -1728 then -- it's not a timeout
display dialog "Error #" & err_num & ": " & err_msg
end
end
Hope that helps.
DS
______________________________________
Digital Native
Your guide through the virtual jungle.
______________________________________
Ever Wonder: Why don't sheep shrink when it rains?