Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old May 9, 2007, 10: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, 10: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 online now   0 Reply With Quote
Old May 9, 2007, 11:22 PM   #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 9, 2007, 11:24 PM   #4
Mr.Texor
macrumors regular
 
Join Date: Apr 2007
use cron
Mr.Texor is offline   0 Reply With Quote
Old May 9, 2007, 11:26 PM   #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 online now   0 Reply With Quote
Old May 9, 2007, 11:30 PM   #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 9, 2007, 11:33 PM   #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 9, 2007, 11:34 PM   #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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Run Script with Administrative Privileges during PackageMaker Installation rebello95 Mac Programming 0 Nov 7, 2011 11:27 PM
Use backslash in Applescript running a Bash Shell Script rebello95 Mac Programming 12 Nov 3, 2011 01:56 PM
Applescript shell script won't run when display is sleeping BlueRevolution Mac Programming 6 Feb 19, 2011 03:11 AM
running Startup scripts as root evildead Mac Help/Tips 5 Nov 5, 2002 07:50 PM
os 9 server running cgi scripts? Matthé Mac Help/Tips 1 May 29, 2002 09:44 AM


All times are GMT -5. The time now is 02:38 PM.

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

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