Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old May 9, 2007, 11:28 PM   #1
ero87
macrumors 65816
 
ero87's Avatar
 
Join Date: Jan 2006
Location: New York City
run a script daily?

Hey friends,

Kind of a simple question, my friend asked me a Mac question and I couldn't answer it! She has an automator script that fetches daily National Geographic photos and makes them her desktop picture. However, she has to click on the script every day for it to function. Is there a way to make it silently run itself on a daily basis?

Thanks!

-E Ro
ero87 is offline   0 Reply With Quote
Old May 9, 2007, 11:31 PM   #2
swiftaw
macrumors 603
 
swiftaw's Avatar
 
Join Date: Jan 2005
Location: Omaha, NE, USA
In ical, make a daily event. then set an alarm, and select run script.
swiftaw is offline   0 Reply With Quote
Old May 10, 2007, 12:22 AM   #3
ero87
Thread Starter
macrumors 65816
 
ero87's Avatar
 
Join Date: Jan 2006
Location: New York City
Quote:
Originally Posted by swiftaw View Post
In ical, make a daily event. then set an alarm, and select run script.
thanks for the suggestion, i did think of that... I was hoping for a solution that didn't involve cluttering up iCal with a daily event.

any other ideas?
ero87 is offline   0 Reply With Quote
Old May 10, 2007, 12:24 AM   #4
Mr.Texor
macrumors regular
 
Join Date: Apr 2007
use cron
Mr.Texor is offline   0 Reply With Quote
Old May 10, 2007, 12:26 AM   #5
swiftaw
macrumors 603
 
swiftaw's Avatar
 
Join Date: Jan 2005
Location: Omaha, NE, USA
Quote:
Originally Posted by ero87 View Post
thanks for the suggestion, i did think of that... I was hoping for a solution that didn't involve cluttering up iCal with a daily event.

any other ideas?
You could make it it's own calendar and then hide the calendar, so you wouldn't see it.
swiftaw is offline   0 Reply With Quote
Old May 10, 2007, 12:30 AM   #6
kostia
macrumors regular
 
Join Date: Apr 2007
For a relatively easy to use front end to cron (the built-in Unix task-scheduling daemon), download the freeware program CronniX.

http://www.abstracture.de/projects-en/cronnix

I used this to set up my daily stuff, like a script that runs at 2 every morning to quit and relaunch a program (URLWell) that doesn't save its settings except on quit. Works like a charm.
kostia is offline   0 Reply With Quote
Old May 10, 2007, 12:33 AM   #7
Mr.Texor
macrumors regular
 
Join Date: Apr 2007
somehow my post was not sent completly..
here's the missing part of my first reply:

open a terminal.. and run

Code:
crontab -e
that will open an editor to .. edit.. your crontab file.
a crontab file has a strict formating.. the first part of every line describes at what time it runs:

Code:
# Use the hash sign to prefix a comment
# +---------------- minute (0 - 59)
# |  +------------- hour (0 - 23)
# |  |  +---------- day of month (1 - 31)
# |  |  |  +------- month (1 - 12)
# |  |  |  |  +---- day of week (0 - 7) (Sunday=0 or 7)
# |  |  |  |  |
# *  *  *  *  *  command to be executed
for example:
Code:
0 0 * * * /Users/User_Name/superscript
will run the script named superscript at 24 hours everyday.. the first 0 is the minute it should run. if you want it to run every 30 mins, you can write "0,30" instead of 0. The second 0, is the hour to run. the three * means to run the script every day of month, month, day of week.
Mr.Texor is offline   0 Reply With Quote
Old May 10, 2007, 12:34 AM   #8
Mr.Texor
macrumors regular
 
Join Date: Apr 2007
Quote:
Originally Posted by kostia View Post
For a relatively easy to use front end to cron (the built-in Unix task-scheduling daemon), download the freeware program CronniX.

http://www.abstracture.de/projects-en/cronnix

I used this to set up my daily stuff, like a script that runs at 2 every morning to quit and relaunch a program (URLWell) that doesn't save its settings except on quit. Works like a charm.
ooooh.. that's a nice app, thanks for the link
Mr.Texor is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How can I get OSX to run a script weekly tekboi Mac Programming 3 Mar 10, 2014 05:37 PM
How to create a shell script and run it? Killwin98 Mac Programming 3 Mar 18, 2013 07:39 PM
Run Script When iPhone Connected Baklava OS X 3 Feb 27, 2013 07:42 AM
Run script on Screen Lock Switch46 Mac Programming 7 Nov 26, 2012 03:32 PM
run script when system is idle? yukonluke Mac Programming 0 Aug 10, 2012 05:52 PM

Forum Jump

All times are GMT -5. The time now is 07:14 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC