• 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: Timeout block question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timeout block question


  • Subject: Re: Timeout block question
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 11 Feb 2009 12:09:52 -0800
  • Thread-topic: Timeout block question

>
> Is there a failure option to the with timeout block?
>

I think you want something like this:

try
    with timeout of 5 seconds
            do shell script cmd
    end timeout
on error errMsg number errNum
    -->>>-1712 (Time out Error number)

    if errNum = -1712 then
        display dialog errMsg default answer errNum
    else
        --handle some other error
    end if
end try

HTH,

Ed

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Timeout block question
  • Next by Date: Missing Scripting addition that would cover SATIRPLl and SATIFINd calls
  • Previous by thread: Timeout block question
  • Next by thread: Missing Scripting addition that would cover SATIRPLl and SATIFINd calls
  • Index(es):
    • Date
    • Thread