Friday, August 6, 2010

Time Controlled Application Running?

How do I schedule an application to automatically launch at 4am and then automatically shutdown at 9am on my iMac? My iMac is left on 24 x 7 and usually has a dummy account logged in. It is running OS X 10.5.8





Thanks All


CharlesTime Controlled Application Running?
You could write a cron job to launch a script that would open the application and another that would quit the application. Or you can schedule an alarm in iCal to run the program.





http://www.xvsxp.com/power_user/schedule鈥?/a>





More info:


A shell script to launch the application might look like:





#!/bin/sh


open -a Dictionary





And a shell script to quit the app:





#!/bin/sh


osascript %26lt;%26lt;EOF


tell application ';Dictionary';


quit


end tell


EOFTime Controlled Application Running?
This is how you do it on windows, not sure about Macs (probably not but you should try anyway).





Press F2 on start-up and then change the settings on the turn-off/turn on if you want.

No comments:

Post a Comment