View Full Version : Launching a Script after Sleep or Screen Saver exit

Mar 19, 2009, 10:23 AM

I want to run a Ruby script I after certain system events. The events I'm interested in are:

awake from sleep
exit screen saver
network connection established

I originally just used cron to schedule this script but I've been reading a bit about launchd and it seems to be the preferred way to launch scripts. Is there a way to achieve my goal using launchd?