• 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: not allowed? with Cron
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not allowed? with Cron


  • Subject: Re: not allowed? with Cron
  • From: Doug McNutt <email@hidden>
  • Date: Thu, 7 Sep 2006 10:24:52 -0600

At 09:06 -0600 9/7/06, Robert Poland wrote:
>#CrInfo Eject Stuff ? disk
>04      8       *       *       *       "osascript  ~Library:Scripts:Universal Scripts:EjectStuff"
>
>Robert Poland
><mailto:email@hidden>email@hidden

Try:
04      8       *       *       *       osascript  $HOME/Library/Scripts/Universal\ Scripts/EjectStuff

EjectStuff should NOT be saved as an application
osascript will expect to compile it each time.

The ~ symbol for $HOME is a shell feature that may not be recognized by cron. $HOME is set as an environment variable though. Everything is case sensitive here!

It's possible that osascript will demand a text file rather than a stored script as a Script Editor document. Scripts saved as a simple text document with UNIX line ends is the only way I have actually done such things. Script editor can save as TEXT but watch out for the line ends. It may use Classic Mac line ends. <ftp://ftp.macnauchtan.com/Software/LineEnds/>

--

--> From the U S of A, the only socialist country that refuses to admit it. <--
 _______________________________________________
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

References: 
 >not allowed? with Cron (From: Robert Poland <email@hidden>)
 >Re: not allowed? with Cron (From: "hackmiester (Hunter Fuller)" <email@hidden>)
 >Re: not allowed? with Cron (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: not allowed? with Cron
  • Next by Date: Re: not allowed? with Cron
  • Previous by thread: Re: not allowed? with Cron
  • Next by thread: Re: not allowed? with Cron
  • Index(es):
    • Date
    • Thread