Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sant0sk1

macrumors newbie
Original poster
Mar 19, 2009
1
0
Hi!

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

  1. awake from sleep
  2. exit screen saver
  3. 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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.