Re: Apple Event timeout problems... Large script.
Re: Apple Event timeout problems... Large script.
- Subject: Re: Apple Event timeout problems... Large script.
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 12 Jun 2001 11:54:49 -0400
- Organization: [very little]
>
From: "Fox, Christopher B" <email@hidden>
>
To: "'email@hidden'"
>
<email@hidden>
>
Subject: Apple Event timeout problems... Large script.
>
Date: Mon, 11 Jun 2001 15:11:26 -0400
>
>
Hello group:
>
>
I'm having some difficulty with a large script I've been asked to
>
maintain. The developer who initially coded the script is leaving prior to
>
the script being put into production. The script does have a couple of
>
issues remaining to be worked out, and that job has fallen on my shoulders.
>
>
The biggest problem I have is with large files. During one part of
>
the script, if the file size is too great, an error dialog box shows up on
>
screen "Apple Event timed out." and the script fails to continue executing.
>
The script works very well on small files. The code that is causing the
>
timeout is at the very bottom of the script. The problem seems to show up
>
most frequently over Airport. A wired connection seems to work a little
>
better, but may still occasionally time out.
>
>
Thanks for any help you can provide.
Timeouts occur when AppleScript sends a command to an application and
gets no response within the timeout period. The default timeout period
is 60 seconds. To extend that you can bracket the command to the
application with "on timeout of x seconds" and "end timeout". Set "x"
to the number of seconds you want in the timeout period.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[6/12/01 11:54:15 AM]