Re: Monitoring application in background
Re: Monitoring application in background
- Subject: Re: Monitoring application in background
- From: Emmanuel <email@hidden>
- Date: Thu, 11 Apr 2002 00:22:54 +0200
At 8:14 PM +0200 10/4/02, Thierry Lavallee [8P-Design] wrote:
>
>
Hi,
>
I would like an applescript application to run every 5 minutes...
>
-Is this possible without it being open all the time and risking a user to
>
quit it from the application menu?
>
-How should I handle this script without hogging the system's performance?
>
>
Thanks in advance. : )
>
>
Fyi: This script will verify internet connection and route according to
>
status.
I think that's what "idle" is for: you have to save your script as an
application which stays in the background, and include a "idle" handler:
------------------
on idle
-- do whatever periodic task
return 5 * 60 * 60 -- 5 minutes, in 1/60th second unit
end idle
------------------
Check the AppleScript Language Guide for reliable information.
Emmanuel
_______________________________________________
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.