• 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: Timed loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: switching user using apple script
  • Next by Date: Re: XMLlib -- > Xpath
  • Previous by thread: Timed loop
  • Next by thread: Re: Timed loop
  • Index(es):
    • Date
    • Thread