Idle handling, just not grokking it.
Idle handling, just not grokking it.
- Subject: Idle handling, just not grokking it.
- From: "Connor W. Anderson" <email@hidden>
- Date: Thu, 15 Nov 2001 09:27:50 -0600
I'm automating some FileMaker Pro processes (imports, relookups, etc.) that
take a long time on our ancient hardware. In order to avoid AppleEvent
timeouts, I am trying to implement idle handling. Using Bill Cheesman's
resources, I have put together a script that looks exactly like the below
(which is robbed exactly from Bill's web site), except that instead of "beep
x" it runs a script on FileMaker.
What I cannot figure out is when I run this script, it does nothing. In
Script Debugger the only result is "beep 1" but the system does not beep.
This is all being done under OS 9.0.4, AppleScript version 1.4 which should
be fine.
What Am I Missing Here?
global theScript
script Stage1
beep 1
end script
script Stage2
beep 2
end script
script Stage3
beep 3
end script
on idle
run script theScript
if theScript is Stage1 then
set theScript to Stage2
else if theScript is Stage2 then
set theScript to Stage3
else
set theScript to Stage1
end if
return 3
end idle
on run
set theScript to Stage1
end run
--
Connor W. Anderson
Technical Services Manager
Woodward Communications, Inc.
"Being Irish he possessed an abiding sense of tragedy
which sustained him through brief episodes of joy."
- W. B. Yeats