Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Prevent AppleScript Timeout ?

Posted on 1998-10-12
1
Medium Priority
?
1,087 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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 …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

618 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