• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crontab doesn't work for me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Crontab doesn't work for me
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Crontab doesn't work for me (From: Brian Johnson <email@hidden>)

  • Prev by Date: Re: Crontab doesn't work for me
  • Next by Date: Re: Crontab doesn't work for me
  • Previous by thread: Re: Crontab doesn't work for me
  • Next by thread: Re: Crontab doesn't work for me
  • Index(es):
    • Date
    • Thread