<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to control a Mac Mini from your iPhone including waking, sleeping, and audio / video</title>
	<atom:link href="http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/feed/" rel="self" type="application/rss+xml" />
	<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/</link>
	<description>The blog and portfolio of an Apple iPhone Developer</description>
	<lastBuildDate>Mon, 01 Mar 2010 01:26:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-1059</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 16 Jan 2010 19:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-1059</guid>
		<description>I had a few issues related to permissions on the script file as well as The document root was set to &quot;/Library/WebServer/Documents&quot; Instead of /Users/[Username]/Sites. I assume this is due to me not enabling home sites however just something to check. If you have issues the /private/var/log/apache2/error_log will tell you the issue. my case is was permissions on the shutdown script fixed with 
chmod 770 sleep.scpt

I hacked together code that I was planning on using to do other things like restart the boxee app
or shut down the system
or launch a different



      
      
      

</description>
		<content:encoded><![CDATA[<p>I had a few issues related to permissions on the script file as well as The document root was set to &#8220;/Library/WebServer/Documents&#8221; Instead of /Users/[Username]/Sites. I assume this is due to me not enabling home sites however just something to check. If you have issues the /private/var/log/apache2/error_log will tell you the issue. my case is was permissions on the shutdown script fixed with<br />
chmod 770 sleep.scpt</p>
<p>I hacked together code that I was planning on using to do other things like restart the boxee app<br />
or shut down the system<br />
or launch a different</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fany</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-1056</link>
		<dc:creator>fany</dc:creator>
		<pubDate>Wed, 13 Jan 2010 13:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-1056</guid>
		<description>Hello. I installed iwol but the port settings not know what to put directly into scriu.Am cable network card. Can you help?</description>
		<content:encoded><![CDATA[<p>Hello. I installed iwol but the port settings not know what to put directly into scriu.Am cable network card. Can you help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nick</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-735</link>
		<dc:creator>nick</dc:creator>
		<pubDate>Thu, 22 Oct 2009 20:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-735</guid>
		<description>tried this and couldn&#039;t get it to work.  script runs fine on mac, is in same folder as index.php in root folder, but isn&#039;t triggered on either mac or iphone (goodnight message comes up though).  i tried saving script as scpt and app. user account is correct.

nick</description>
		<content:encoded><![CDATA[<p>tried this and couldn&#8217;t get it to work.  script runs fine on mac, is in same folder as index.php in root folder, but isn&#8217;t triggered on either mac or iphone (goodnight message comes up though).  i tried saving script as scpt and app. user account is correct.</p>
<p>nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-570</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Tue, 13 Oct 2009 09:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-570</guid>
		<description>Hi Ben, great write up.  i am doing something similar with a Mac Mini as a media server connected to a NAS Drive over WiFi and wired in to an AV Amp distributing movies and music over cat-5 throughout my house.  I am using my iPhone to control Front Row etc with an app called &quot;Rowmote Pro&quot; downloaded from the App Store.  this application is excellent and allows full keyboard and mouse control as well as launching and quiting applications and sending the Mini to Sleep.  The only issue i had was waking once it was snoozing and will try your excellent suggestions tonight...!</description>
		<content:encoded><![CDATA[<p>Hi Ben, great write up.  i am doing something similar with a Mac Mini as a media server connected to a NAS Drive over WiFi and wired in to an AV Amp distributing movies and music over cat-5 throughout my house.  I am using my iPhone to control Front Row etc with an app called &#8220;Rowmote Pro&#8221; downloaded from the App Store.  this application is excellent and allows full keyboard and mouse control as well as launching and quiting applications and sending the Mini to Sleep.  The only issue i had was waking once it was snoozing and will try your excellent suggestions tonight&#8230;!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-490</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sun, 13 Sep 2009 20:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-490</guid>
		<description>I had some trouble debugging the command to sleep the computer, so i made a slight modification:

&lt;?php
echo &#039;&lt;pre&gt;&#039;;
 system(&#039;./sleep.scpt 2&gt;&amp;1&#039;, $retval);
echo &#039;&lt;/pre&gt;&#039;;
echo &#039;Return value: &#039; . $retval;
?&gt;

it echo&#039;s output straight to the webpage, and importantly 2&gt;&amp;1 catches the error output.

I also had some worries about allowing apache to do anything, so i went for the slightly more secure 

1)  actually call
        system(&#039;sudo ./sleep.scpt 2&gt;&amp;1&#039;, $retval);
2)  allow www to execute the script in  the sudoers file
        sudo vi /etc/sudoers
 add 
        Cmnd_Alias TOOLS=/Library/WebServer/Documents/sleep.scpt         
        www ALL=NOPASSWD: TOOLS</description>
		<content:encoded><![CDATA[<p>I had some trouble debugging the command to sleep the computer, so i made a slight modification:</p>
<p>&lt;?php<br />
echo &#8216;&lt;pre&gt;&#8217;;<br />
 system(&#8217;./sleep.scpt 2&gt;&amp;1&#8242;, $retval);<br />
echo &#8216;&lt;/pre&gt;&#8217;;<br />
echo &#8216;Return value: &#8216; . $retval;<br />
?&gt;</p>
<p>it echo&#8217;s output straight to the webpage, and importantly 2&gt;&amp;1 catches the error output.</p>
<p>I also had some worries about allowing apache to do anything, so i went for the slightly more secure </p>
<p>1)  actually call<br />
        system(&#8217;sudo ./sleep.scpt 2&gt;&amp;1&#8242;, $retval);<br />
2)  allow www to execute the script in  the sudoers file<br />
        sudo vi /etc/sudoers<br />
 add<br />
        Cmnd_Alias TOOLS=/Library/WebServer/Documents/sleep.scpt<br />
        www ALL=NOPASSWD: TOOLS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Augs</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-45</link>
		<dc:creator>Augs</dc:creator>
		<pubDate>Sun, 22 Feb 2009 02:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-45</guid>
		<description>I did it! Just used:

tell application &quot;System Events&quot;
sleep
end tell

instead of

osascript -e &#039;tell application &quot;System Events&quot; to sleep&#039;

:-)</description>
		<content:encoded><![CDATA[<p>I did it! Just used:</p>
<p>tell application &#8220;System Events&#8221;<br />
sleep<br />
end tell</p>
<p>instead of</p>
<p>osascript -e &#8216;tell application &#8220;System Events&#8221; to sleep&#8217;</p>
<p> <img src='http://bendodson.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Augs</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-44</link>
		<dc:creator>Augs</dc:creator>
		<pubDate>Sun, 22 Feb 2009 01:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-44</guid>
		<description>Thanks a lot for your help. But unfortunately this doesn&#039;t work for me. I tried to rename my sleep.scpt to sleep.app but when I start it, Leopard tells me that Classic Environment is&#039;nt supported anymore. And when I start sleep.scpt, only the Scripteditor opens. If I click now Execute another error message appears: Unknown token can&#039;t follow these Identifier

I don&#039;t know what to do now... :-(</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your help. But unfortunately this doesn&#8217;t work for me. I tried to rename my sleep.scpt to sleep.app but when I start it, Leopard tells me that Classic Environment is&#8217;nt supported anymore. And when I start sleep.scpt, only the Scripteditor opens. If I click now Execute another error message appears: Unknown token can&#8217;t follow these Identifier</p>
<p>I don&#8217;t know what to do now&#8230; <img src='http://bendodson.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik N</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-38</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Sat, 13 Dec 2008 09:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-38</guid>
		<description>Perhaps not a good fit in your case, but you can use ssh to run AppleScript remotely: &lt;a href=&quot;http://henrik.nyh.se/2008/09/using-apple-media-keys-over-the-network&quot; rel=&quot;nofollow&quot;&gt;http://henrik.nyh.se/2008/09/using-apple-media-keys-over-the-network&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Perhaps not a good fit in your case, but you can use ssh to run AppleScript remotely: <a href="http://henrik.nyh.se/2008/09/using-apple-media-keys-over-the-network" rel="nofollow">http://henrik.nyh.se/2008/09/using-apple-media-keys-over-the-network</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Dodson</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-36</link>
		<dc:creator>Ben Dodson</dc:creator>
		<pubDate>Sun, 23 Nov 2008 17:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-36</guid>
		<description>Glad to hear you got it working :-)</description>
		<content:encoded><![CDATA[<p>Glad to hear you got it working <img src='http://bendodson.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland</title>
		<link>http://bendodson.com/2008/09/08/control-mac-mini-from-iphone-with-waking-sleeping-audio-video/comment-page-1/#comment-33</link>
		<dc:creator>Roland</dc:creator>
		<pubDate>Sun, 02 Nov 2008 14:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://bendodson.com/blog/?p=42#comment-33</guid>
		<description>Well I found out the problem. It just wasn&#039;t executing the script when saved as a .scpt.

So I used applescript to save it as an app and changed the code to &#039;exec... sleep.app&#039; and now it works perfectly.

Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Well I found out the problem. It just wasn&#8217;t executing the script when saved as a .scpt.</p>
<p>So I used applescript to save it as an app and changed the code to &#8216;exec&#8230; sleep.app&#8217; and now it works perfectly.</p>
<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
