Solved

Prevent AppleScript Timeout ?

Posted on 1998-10-12
1
1,027 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 10 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now