Running script/application on wake from sleep?

Discussion in 'Mac Apps and Mac App Store' started by DaSal, Nov 15, 2009.

  1. DaSal macrumors regular

    Joined:
    Mar 19, 2008
    Location:
    The Netherlands
    #1
    I've been looking for a way to run a script or application every time my Mac wakes up from sleep. However it's proving to be surprisingly difficult.

    The only option I seem to be able to find is SleepWatcher, which runs from the command line, I guess, and I can't seem to find any documentation on it. Well, at least none that actually gets it working. If anybody can tell me how to get it working, that'd be great too.

    What I actually need is for my Mac to run the following script on wake:

    If anybody knows how to get it to do that, that'd be great :)
     
  2. DaSal thread starter macrumors regular

    Joined:
    Mar 19, 2008
    Location:
    The Netherlands
  3. apfhex macrumors 68030

    apfhex

    Joined:
    Aug 8, 2006
    Location:
    Northern California
    #3
    I want to do something similar. Specifically I want to quit, then re-open an application upon wake from sleep. I've installed SleepWatcher, and have a .wakup script that I've put in my home directory, but it doesn't appear to run. Can't find any documentation beyond the (unhelpful) man page.

    p.s. also I'm not so sure my script works either...
     

Share This Page