• 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: Compiled script and high CPU %
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiled script and high CPU %


  • Subject: Re: Compiled script and high CPU %
  • From: Simon Forster <email@hidden>
  • Date: Tue, 10 May 2005 20:42:21 +0100


On 10 May 2005, at 19:36, Michael Eldridge wrote:

I have tried not calling the event loop I wrote and using a straight delay statement of length recordDuration but that didn't fix the probelm. What's a good way to handle idle time in a script?

As someone else said, use an idle handler:

on idle()
do stuff
return <seconds>
end

where <seconds> is the number of seconds before the idle handler is called again. The delay method has been reported to eat CPU cycles.


Simon Forster _____________________________________________________ LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247 _____________________________________________________

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Compiled script and high CPU %
      • From: Michael Eldridge <email@hidden>
References: 
 >Re: Compiled script and high CPU % (From: Andrew Oliver <email@hidden>)
 >Re: Compiled script and high CPU % (From: Michael Eldridge <email@hidden>)

  • Prev by Date: Re: Find in Filemaker
  • Next by Date: Re: Zoomed window bug in Tiger?
  • Previous by thread: Re: Compiled script and high CPU %
  • Next by thread: Re: Compiled script and high CPU %
  • Index(es):
    • Date
    • Thread