Re: not allowed? with Cron
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