• 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: newbie question about timers...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie question about timers...


  • Subject: Re: newbie question about timers...
  • From: "J. Stewart" <email@hidden>
  • Date: Tue, 10 Mar 2009 16:22:50 -0400

On 3/10/09 at 8:15 AM, Axel Luttgens <email@hidden> spake thusly:

Up to 10.4.3, the delay command had a surprisingly very heavy CPU load.
Even with the additional improvements that came with 10.5, it still has a noticeable load, when compared to idle handlers or the sleep binary (or some shell's equivalent built-in).
As a result, depending on the OS version and/or the criteria considered for comparing various means to pause a script, the delay command may appear as an inferior choice.


You are correct of course and personally I only use delay to make a script hesitate long enough to allow an external activity of very short duration to complete. For anything else I use "On Idle" with a quit handler if needed. Old habits die hard.

John
--
Whenever you find that you are on the side of the majority, it is time to reform.  -Mark Twain
_______________________________________________
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: 
 >Re: newbie question about timers... (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Getting the Volume Serial Number from a USB Drive?
  • Next by Date: Re: Get physical size of file on mounted disk
  • Previous by thread: Re: newbie question about timers...
  • Next by thread: Rich text - what is the best way to handle rich text
  • Index(es):
    • Date
    • Thread