Re: What's the best way to run a script at a interval time period?
Re: What's the best way to run a script at a interval time period?
- Subject: Re: What's the best way to run a script at a interval time period?
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 17 Jan 2001 00:07:24 -0500
- Organization: [very little]
Gregory Smith wrote:
>
Date: Tue, 16 Jan 2001 11:20:58 -0800
>
Subject: What's the best way to run a script at a interval time period?
>
From: "Gregory Smith" <email@hidden>
>
To: email@hidden
>
>
Hello,
>
>
I have an AppleScript that I currently run manually a few times a day. What
>
is the best way to get the script to run automatically at a predetermined
>
time interval while still allowing full use of the host computer while the
>
script is "sleeping"?
Create a stay-open applet, launched from the Startup Items folder, with
an idle handler like this:
on idle
[do whatever the script does]
return (4 * hours) -- or however long you want between executions
end idle
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[1/17/01 12:06:21 AM]