• 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: Monitoring application in background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Monitoring application in background (From: "Thierry Lavallee [8P-Design]" <email@hidden>)

  • Prev by Date: Re: Scripting Hyperlink changes in InDesign 2.0
  • Next by Date: Re: Anyone using Valentina on Mac OS X
  • Previous by thread: Monitoring application in background
  • Next by thread: Re: Monitoring application in background
  • Index(es):
    • Date
    • Thread