Coordinating a sequence of events
Coordinating a sequence of events
- Subject: Coordinating a sequence of events
- From: Nick Quinn <email@hidden>
- Date: Mon, 02 Apr 2001 18:11:51 +1000
Hi,
I trying to set a series of things for an application to do. Each step is
not too bad, but it is a big "batch" process: downloading selected log files
with Timbuktu, archiving them with Stuffit, summarising with FileMaker and
lastly uploading with Timbuktu to another server which serves the results on
the web.
Each of the steps work, but they keep tripping over each other. So, I
thought BTBM and discovered deep in the depths of "5/5/99 Language Guide"
some stuff about being considerate. So I did the following around my
FileMaker script scheduling:
open file "hd:stats:acc cust"
try
considering application responses
with timeout of 120 seconds
do script "export cust"
end timeout
end considering
on error errorMessage
set ErrorsOccurred to true
end try
The event log tells me:
tell application "FileMaker Pro"
activate
activate
open file "hd:stats:acc cust"
do script "export cust"
open file "hd:stats:acc cust sum"
do script "export cust month"
open file "hd:stats:acc log ex"
--> FileMaker Pro got an error: AppleEvent timed out.
Am I misunderstanding the "considering application responses" hoping that it
should wait until the script completed before continuing and that the "with
Timeout" extended the default 1 minute?
[the "whereAmI" thread was for the remote server scripts. One for "rolling"
the log files and the other for looking for the new uploaded web feed and
making it available. Anyone interested, please contact me off list.]
Hf,
Nick Quinn
Sunshine Beach Software in OZ