Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Use Automator to launch a program every night at midnight

I want Automator to launch Tivo Transfer every night at midnight. How would I set that up? Thanks!

iMac, Mac OS X (10.5.5)

Posted on Nov 1, 2008 4:04 PM

Reply
10 replies

Nov 1, 2008 4:53 PM in response to William Reinecke

You can actually create an iCal event that will run an AppleScript or Automator action at a given time, and have that event repeat at the same time every day. Another way is to use a Cron job.

For iCal:

1. Save the Automator workflow as an application.
2. Select Add Alarm on a new or current event.
3. Select Open File: Other, and open your saved workflow application.
4. Enter the time and date that you want the workflow to run.

If iCal is not running at the scheduled time, the workflow will run when iCal is next opened.

Message was edited by: Emmerac

Nov 1, 2008 4:54 PM in response to William Reinecke

this has nothing to do with automator. use [Lingon|http://tuppis.com/lingon> to make a launch daemon that starts the program you want at the time you want.

when making the launch daemon enter the following in section 2:
type "open" (do not type quotes), press space and drag the program you want launched to line 2

the result should look something like this:

open /Applications/applicationname

Nov 3, 2008 5:30 AM in response to Emmerac

Emmerac wrote:
If iCal is not running at the scheduled time, the workflow will run when iCal is next opened.


iCal doesn’t need to be running—scheduled events will run independently, as long as the user is not logged out. If they are, the event will run after login.

I use an iCal alarm to run an Automator workflow that downloads nightly software builds, and it works without iCal running.

Nov 2, 2011 1:34 PM in response to Simon Aughton

Is there no way around this? A basic feature would be to run something as the system, without a user logged in, like cron on a linux system. I know about launchd but I really don't want to learn all of the boiler plate code necesssary to run a simple shell script that I want to run every night to rsync a directory for a mirror. This seems like a really simple thing to want a server to do, and there seems to be no way to do it without some user logging into the system. Really weird.

Use Automator to launch a program every night at midnight

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.