Re: Compiled script and high CPU %
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