Re: osascript and Cron??
Re: osascript and Cron??
- Subject: Re: osascript and Cron??
- From: "Donald S. Hall" <email@hidden>
- Date: Wed, 30 Jan 2002 22:55:07 -0700
Brett,
This has been discussed several times recently on this list:
>
On 1/10/02 8:30 PM, "Christopher Nebel" <email@hidden> wrote:
>
>
> On Thursday, January 10, 2002, at 08:36 AM, Ben wrote:
>
>
>
>> I have the latest version of Mac OS X. I am trying to get cron to run a
>
>> script that loads a web page. The script works fine. I cant seem to
>
>> get
>
>> this to be reliable. I have classic open and I rely on Ido script
>
>> scheduler. That works without a problem. Any suggestions?
>
>
>
> Yes -- don't use cron. For security reasons, scripts run from cron
>
> can't send events to normal applications (e.g. the Finder, IE, etc.).
>
> Use a script scheduler that runs as a normal user task, not one that
>
> starts up at boot time like cron does.
My shareware scheduling app, Script Timer, will run your scripts as compiled
scripts. It also allows you to pass parameters to the scripts, lets the
scripts return data to be logged in its log file, and gives you the option
of waiting for one script to finish before allowing another to start. (For a
further list of advantages of using Script Timer over cron, go to the Script
Timer FAQ page on my web site below, accessible from the Shareware and
Freeware page.)
Hope this helps,
Don
>
I'm trying to use Cron to run a compiled script. The script runs find if I
>
used the osascript command to call it from the terminal. The script will run
>
fine if I manually run it from CronniX. But, if I leave the osascript
>
command to run it as a crontab, it doesn't work. Any ideas?
>
>
Thanks,
>
Brett
>
>
P.S. - I know I can compile it as an app, but I would rather run it as a
>
compiled script since it's faster.
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden