• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie: Why AppleEvent timing out?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: Smile - new window with properties [and a tip]
  • Next by Date: Re: ignore icon file how?
  • Previous by thread: Newbie: Why AppleEvent timing out?
  • Next by thread: novice questions (error diagnosis/incomplete dictionaries)
  • Index(es):
    • Date
    • Thread