Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Apple Software > Mac Applications
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 15, 2009, 07:25 AM   #1
DaSal
macrumors regular
 
Join Date: Mar 2008
Location: The Netherlands
Running script/application on wake from sleep?

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:

Quote:
#!/bin/sh
curl --get "http://127.0.0.1:3000/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)
If anybody knows how to get it to do that, that'd be great
DaSal is offline   Reply With Quote
Old Nov 16, 2009, 01:26 AM   #2
DaSal
Thread Starter
macrumors regular
 
Join Date: Mar 2008
Location: The Netherlands
Nobody?
DaSal is offline   Reply With Quote
Old Dec 4, 2009, 08:37 PM   #3
apfhex
macrumors 68030
 
apfhex's Avatar
 
Join Date: Aug 2006
Location: Northern California
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...
__________________
2006 Mac Pro: 2.66Ghz, 6GB RAM, 8800GT, 23" ACD, Snow Leopard/Windows 7
iPhone 3GS 16GB Black

Last edited by apfhex : Dec 4, 2009 at 08:56 PM.
apfhex is offline   Reply With Quote

Reply

Mac Forums > Apple Software > Mac Applications

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:30 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2002-2010, MacRumors.com, LLC