I have enabled a cron to start 2 applescript applications.
I wanted to start Folding@home after I left for the day.
One script activates Folding@home and the other quits Folding@home.
Straight forward and simple. I tested them by clicking on the applications, and the scripts work find.
However, when I schedule them in the cron. Though Folding@home start fine, it isn’t stopped when the “stop” script is run.
I’ve narrowed the error to “Error -600 Folding@home got an error; the application isn’t running”
so I tested it live. Schedule a start, and a stop a minute apart. and watched what happened.
Start ran, and started Folding@home.
Stop ran, and gave me the above error.
The disturbing thing, is that it works when I run the scripts, but when they are scheduled, the stop script won’t run.
I even tried starting the scripts from the terminal, as if I were the scheduler, and it still works.
-- Start Folding@home
try
tell application "Folding@home"
activate
end tell
end try
-- Stop Folding@home
try
tell application "Folding@home"
activate
quit
end tell
--error trapping
end try
Thanks for any help.
Han Solo