|
|
great idea, but hey, use cron!
I think this script is great, but instead of having to execute the script each night, if you know you are going to wake up each morning at 6am, you could change it a little and add it to your crontab. Ie, do the following. First, remove the following lines (which are for parsing the command line of your script, can't be used with cron)
great idea, but hey, use cron!
Hi, I tried your cron-based solution but for some reason the shell script only works from the command line but not when run from cron. The time and wake up prompt work fine but iTunes launches without playing a track. The only thing I can think of offhand is that I do have OS X installed on an external drive and my MP3s on the drive in my PowerBook but I don't see that affecting the script in any way (since it works from the command line). THX
great idea, but hey, use cron!
You are right. I pared my example to this, and it still didn't work. Anybody know why?
great idea, but hey, use cron!
From everything I can tell, you cannot run applescripts from cron. So the only thing to do, would be to compile the arguments to osascript into little applications with AppleScript Editor, and call them from your script using \'open.\' For example, instead of the line:
great idea, but hey, use cron!
For more info on the cron thing, see:
This thread at bbs.applescript.net
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|