Re: OS X replacement for Script Scheduler
Re: OS X replacement for Script Scheduler
- Subject: Re: OS X replacement for Script Scheduler
- From: Jon Pugh <email@hidden>
- Date: Thu, 9 May 2002 08:12:38 -0700
At 9:45 AM -0400 5/9/02, Timothy K. Wilkinson wrote:
>
After reading all this information and downloading Cronix what I'm wondering
>
is do any of these applications run scripts when you are logged out? I
>
haven't seen anything that would say yes or no. I have a script that sends
>
a reminder email to my students to turn in their work hours and I'd like
>
that to run even if I'm logged out.
In most ways, this is the crux of the problem.
You see, cron and most variants of it, run their scripts via a subprocess, which means they login a separate thread to run the scripts. They DO NOT run in your current session. Thus, they do not have access to running apps. Also, and unfortunately, this subprocess they do run in cannot launch any GUI apps, which makes running normal AppleScripts quite impossible.
So, in order to run a script while you are logged out, you need to avoid using any GUI apps and just stick to functions that don't require the Window server.
This can be quite a challenge.
Jon
_______________________________________________
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.