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
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:
#!/bin/sh
curl --get "http://127.0.0.1:3000/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)
If anybody knows how to get it to do that, that'd be great