Re: Crontab doesn't work for me
Re: Crontab doesn't work for me
- Subject: Re: Crontab doesn't work for me
- From: Martin Orpen <email@hidden>
- Date: Wed, 22 Sep 2004 00:30:54 +0100
on 22/9/04 12:15 am, Brian Johnson at email@hidden wrote:
>
>
> On Tue, 21 Sep 2004, Dan Doughtie wrote:
>
>> Using the example from Ethan Wilde¹s book on AppleScript For Applications I
>> created a cron job that is supposed to run a compiled Applescript that
>> basically tells an app to activate. (page 68)
>
> Welcome to the "you can't run Applescripts in a shell universe" problem.
> Shell scripts that use osascript will die a horrible death if they aren't
> run from a window'ed environment (under the control of "Window Server").
> If you check your system log I think you'll find your script crashing each
> time cron launches it.
>
> The "open -a" suggestion might work for Entourage, but it won't run the
> script (I don't think) for much the same reason.
Entourage can launch an AppleScript using its own rules. Therefore you'd
only need to ensure that Entourage was kept running 24/7 - which could be
handled by cron easily enough.
I think I'd prefer cron doing this rather than an AppleScript idling away
24/7 :-)
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden