Re: Newbie: Why AppleEvent timing out?
Re: Newbie: Why AppleEvent timing out?
- Subject: Re: Newbie: Why AppleEvent timing out?
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 21 Nov 2000 01:00:41 -0500
- Organization: [very little]
Doug Berg wrote:
>
Reply-To: <email@hidden>
>
From: "Doug" <email@hidden>
>
To: <email@hidden>
>
Subject: Newbie: Why AppleEvent timing out?
>
Date: Mon, 20 Nov 2000 17:33:44 -0800
>
>
I am running a very simple AppleScript. It duplicates (backs up) a 50 Mb
>
folder to mounted volume over a network.
>
>
After the AppleScript starts to execute, I get a message that states: "Got a
>
finder error: AppleEvent timed out." The folder continues to transfer until
>
complete, but then the script stops executing. What's up??
>
>
Is the file transfer taking too long, or what?
>
>
dougberg
Whenever AppleScript sends commands to an application it waits for a
response, usually one indicating that the requested action has been
completed. By default, if it doesn't get that response within one
minute it times out. There are two approaches to getting around this.
The easiest is to encase your tell block to the application in "with
timeout of n seconds" and "end timeout". This extends the period for as
many seconds as you specify.
The other, which only works under certain circumstances, is to encase
the tell block in "ignoring application responses" and "end ignoring".
With this structure, the commands are sent out and there is no waiting
for a response. Your script will continue immediately after the "end
ignoring" statement.
Marc [11/21/00 1:00:33 AM]