Looking for

Eugen C. Buehler buehler+ at pitt.edu
Wed Apr 17 09:01:55 EST 1996


   Well if you're smart enough to be using a Macintosh, it should take
about five minutes to write an Applescript that would do what you want. 
Here's what it would look like:

property idleTime : 60 -- seconds to wait before checking time
property startTime : 75600 -- launch time, in seconds after midnight
property stopTime : 79200 -- quit time, in seconds after midnight
property turnedOn : false

on idle
   set theTime to (time of (current date))
   if (not (turnedOn) and theTime > startTime and theTime < stopTime) then
      tell application "Application Name" to run
      set turnedOn to true
   else if (turnedOn and theTime > stopTime) then
      tell application "Application Name" to quit
      set turnedOn to false
   end if
   return idleTime
end idle

If you're using Windows 95 (aka Mac 88) or any of those other, lesser
platforms, you're on your on.

-Eugen Buehler
University of Pittsburgh

In article <4krthn$f1q at vivanews.vivanet.com>, vonbuskr at vivanet.com (R.
VonBuskirk) wrote:

> Im trying to find a software program that will:
> 
>         1.  start a program at a specific time
>         2.  Run the program for a specific time
>         3.  Close the program
> 
> Does anyone have any Ideas???
> 
> would appreciate the help..
> 
> rob




More information about the Bio-soft mailing list