Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Use cron or anacron to run workflows System 10.4
Tiger only hintI was late installing Tiger, but one of the first things I did was to create the Astronomy Picture of the Day (apod) workflow in the December Macworld. Having done that, I realized I would actually have to run it every day; what a drag. The solution was easy.

I run anacron on a PowerBook (you could also use cron), so I just added the following to my daily.local file:
/usr/bin/open -a /users/rbp/Applications/apod.app
You should substitute your path to the application, obviously. anacron runs periodically while your laptop is running. It checks to see if the daily jobs have been run yet. If not, it runs them. Thus you will have the day's "desktop" within an hour of firing up your laptop.

[robg adds: You can find the apod workflow linked in this article on the Macworld site.]
    •    
  • Currently 2.00 / 5
  You rated: 2 / 5 (3 votes cast)
 
[10,691 views]  

10.4: Use cron or anacron to run workflows | 4 comments | Create New Account
Click here to return to the '10.4: Use cron or anacron to run workflows' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use cron or anacron to run workflows
Authored by: tdturner on Dec 29, '05 09:48:57AM

This is handy, except that every time it runs it will steal focus from your foreground application, which is annoying as can be. I wanted to update my wallpaper every so often from a local webcam. However, I just turned it off because it drove me nuts. Any tips on how to get /usr/bin/open to run in the background?



[ Reply to This | # ]
10.4: Use cron or anacron to run workflows
Authored by: sjk on Dec 29, '05 07:05:08PM
Nicholas Riley's launch utility can launch apps in the background although I haven't tried it on 10.4.

[ Reply to This | # ]
10.4: Use cron or anacron to run workflows
Authored by: rocteur on Dec 29, '05 10:06:06AM
People using 10.4 or later should start looking at launchd and launctl. There are some excellent articles out there that document launchd and launchctl. Yes cront still works and for some things cron is probably still the best tool but do look at the new way of doing it!

http://www.rocteur.cc/geeklog/public_html/article.php?story=20051224201226697

[ Reply to This | # ]

10.4: Use cron or anacron to run workflows
Authored by: jodamiller on Dec 29, '05 10:29:18AM
Or one could just use iCal to automate the workflows, as described in the same article of Macworld.

[ Reply to This | # ]