• 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: Philip Aker <email@hidden>
  • Date: Sat, 11 Jul 2009 04:24:41 -0700

On 2009-07-10, at 06:24:58, 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.

I think you'll have to move to NSTimer or CFRunLoop timers to do this. Depending on the kind of granularity needed, you may have to look into some other technologies such as CoreAudio or QTKit. For instance, <http://developer.apple.com/documentation/Cocoa/Conceptual/Timers/Articles/timerConcepts.html#//apple_ref/doc/uid/20000806> states:

"Because of the various input sources a typical run loop manages, the effective resolution of the time interval for a timer is limited to on the order of 50-100 milliseconds."


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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: Re: Accessing Localized File Menu String
  • Next by Date: Re: 2 timers at once
  • Previous by thread: Re: 2 timers at once
  • Next by thread: Re: 2 timers at once
  • Index(es):
    • Date
    • Thread