• 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: 2 timers at once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 timers at once


  • Subject: Re: 2 timers at once
  • From: Bob Studer <email@hidden>
  • Date: Fri, 10 Jul 2009 07:48:31 -0700

On Jul 10, 2009, at 6:24 AM, Shawn Brady wrote:

I am using applescript as a timer in an Xcode created interface. I have a master clock timer that counts down from 28:30. Then I have 4 individual timers that I want to trigger at will with hot keys. It seems like Applescript will only do 1 thing at a time and will not trigger a second timer until the 1st one is done. Is there a way to do this.


You need to create an "on idle" handler and have enough state information to know when each timer is active. You can then update the active timers in the "on idle" handler and have it perform the desired actions when the timer runs out.

	--Bob

Written while listening to:
Rhapsody in Blue
Gershwin
Rhapsody in Blue

_______________________________________________
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: 
 >2 timers at once (From: Shawn Brady <email@hidden>)

  • Prev by Date: 2 timers at once
  • Next by Date: Re: still having trouble with SOAP
  • Previous by thread: 2 timers at once
  • Next by thread: Re: 2 timers at once
  • Index(es):
    • Date
    • Thread