• 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: Andrew Oliver <email@hidden>
  • Date: Tue, 10 May 2005 11:22:43 -0700

On 5/10/05 11:03 AM, "Michael Eldridge" <email@hidden> wrote:

> Hi all, I've got a compiled script I wrote with AppleScript Studio to control
> QuickTime Broadcaster. I've noticed that when the script is running in the
> foreground, idle (Broadcaster is not running. The app is just in the
> foreground doing nothing.) there's a constant 23% of the CPU being used. If I
> switch to another app the script CPU % drops to zero.
>[snip]
>
> Does anyone have any ideas on what the problem could be and how to fix it. I
> can post some code if necessary. Thanks a bunch.

First thoughts relate to how you're script is written to handle idle time.
Are you using repeat loops and 'delay' or are you using an idle handler?

On from there, since:
>If I switch to another app the script CPU % drops to zero.

Why not just have your script activate some other application, thereby
forcing itself to the background?

Andrew
:)

 _______________________________________________
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: 
 >Compiled script and high CPU % (From: Michael Eldridge <email@hidden>)

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