?
Solved

Prevent AppleScript Timeout ?

Posted on 1998-10-12
1
Medium Priority
?
1,072 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

762 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