Launching a Script after Sleep or Screen Saver exit

Discussion in 'Mac Programming' started by sant0sk1, Mar 19, 2009.

  1. macrumors newbie

    Joined:
    Mar 19, 2009
    #1
    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?
     

Share This Page