?
Solved

Prevent AppleScript Timeout ?

Posted on 1998-10-12
1
Medium Priority
?
1,093 Views
Last Modified: 2013-12-26
How can I prevent my applescript timeout as when my program
try to open an large file with ImageReady, it got timeout.
Also when timeout will occur ?
Thanks
0
Comment
Question by:stanleylcm
1 Comment
 
LVL 2

Accepted Solution

by:
gormenghast earned 30 total points
ID: 1291554
Hi
The default timeout period for Applescript is two minutes, however if this is insufficient you can surround commands with  the "with timeout" statement.

Syntax as follows:

    with timeout [of] <numberOfSeconds> seconds
         [statement].....
    end [timeout]

Or alternatively you could handle any timeout errors by using at try statement and error trapping for errNum -1712 which is a timeout error.

    Hope this helps
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question