Re: Timed loop
Re: Timed loop
- Subject: Re: Timed loop
- From: Skeeve <email@hidden>
- Date: Thu, 22 Nov 2007 08:48:24 +0100
Peter Baxter wrote:
I would like to run a loop until 10 minutes after it starts. getting
the initial date is easy:
But you don't need to. Computers calculate with (milli- or micro-) seconds
So does AppleScript (i jhose german variable names because I am German
and "jetzt" in english "then" wouldn't work as a name:
set jetzt to current date
set dann to jetzt + 10 * minutes
repeat until (current date) >= dann
delay 10 -- do your work here. I chose a delay because I have
nothing to do
end repeat
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
References: | |
| >Timed loop (From: Peter Baxter <email@hidden>) |