Prevent AppleScript Timeout ?

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
stanleylcmAsked:
Who is Participating?
 
gormenghastConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.