• 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: Trapping timeout errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Prev by Date: RE: Setting the visibility of a file or folder
  • Next by Date: Numbers and Lists and Quark
  • Previous by thread: Trapping timeout errors
  • Next by thread: can i 'store script' as stay open applet?
  • Index(es):
    • Date
    • Thread