Re: Newbie Question - Recommended method of idling?
Re: Newbie Question - Recommended method of idling?
- Subject: Re: Newbie Question - Recommended method of idling?
- From: Simon Brown <email@hidden>
- Date: Fri, 07 Feb 2003 13:34:49 +0000
Thanks for that Ivan. I had tried an idle handler but I hadn't used it
correctly - I didn't think of putting the whole routine inside it. I'll try
it now.
--
Simon
--------------
>
From: Ivan Andrus <email@hidden>
>
Date: 06 Feb 2003 22:01:56 -0700
>
To: AS List <email@hidden>
>
Subject: Re: Newbie Question - Recommended method of idling?
>
>
On Thu, 2003-02-06 at 21:37, Simon Brown wrote:
>
> I'm using a very simple handler to repeat a script every 5 minutes
>
> on run
>
> repeat
>
> some stuff
>
> some more stuff
>
> waitabit()
>
> end repeat
>
> end run
>
>
>
> on waitabit()
>
> delay 300
>
> end waitabit
>
>
> It works but doesn't do much for the responsiveness of my machine when it is
>
> running in the background. Does anyone have any suggestions for a better
>
> method?
>
>
An idle handler is usually the way to go. You have to save it as a
>
stay-open application.
>
>
on idle
>
some stuff
>
some more stuff
>
--waitabit()
>
return 5 * minutes --the time to wait
>
end idle
>
>
HTH
>
--
>
Ivan Andrus
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.