Jump to content
3 posts in this topic

Recommended Posts

Please forgive me if this post is not quite in the correct category but it covers a number of Apple technologies...

 

I use Leopard, iTunes and an Airport Express to stream podcasts to the stereo in my bedroom at night. My Macbook remains downstairs in the study.

 

I select the podcast I want to listen to via my iPhone and the Apple Remote application, everything works great and as it should.

 

Once I've listened to my podcasts I would like to be able to make my Macbook go to sleep or shutdown without the need of getting of bed.

 

At the moment I use an iPhone app called TouchTerm to SSH into my Macbook, navigate to a particular directory and run an AppleScript I created which makes the "Finder" app. sleep. It's a little longwinded and fiddly especially late at night.

 

I would like to have a "Sleep" button on my iPhone, which when pressed opens up Mobile Safari on my iPhone, loads a page running via Apache on my Macbook, which has a link "Sleep".

 

Can I configure Apache to run my AppleScript, as me the user, from a web link?

 

I would configure the page in Apache to only render if the IP address (10.0.0.145) and user-agent match that of my iPhone for security. Building the HTML page and adding an icon for the iPhone is straight forward.

 

Thanks in advance!

Link to comment
https://www.insanelymac.com/forum/topic/145810-sleep-macbook-via-apache/
Share on other sites

How about using VNC to screen share with your MacBook from your iPhone and put it to sleep that way?

 

I do something very similar to you — controlling iTunes through the remote, putting the machine asleep when I go to bed — and VNC works beautifully. Four taps on my iPod Touch puts my computer to sleep.

 

A few VNC clients can be found for free in the App Store.

×
×
  • Create New...