<?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: Using AppleScript and a Shell Script to Restart an AppleTV remotely</title>
	<atom:link href="http://www.wiseontech.com/hack/using-applescript-and-a-shell-script-to-restart-an-appletv-remotely/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiseontech.com/hack/using-applescript-and-a-shell-script-to-restart-an-appletv-remotely</link>
	<description>Hacks, scripts and ideas for the refined geek.</description>
	<lastBuildDate>Tue, 20 Jul 2010 15:45:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Wise on Tech &#124; Using PHP and a Shell Script to Restart an AppleTV remotely &#8212; via the web</title>
		<link>http://www.wiseontech.com/hack/using-applescript-and-a-shell-script-to-restart-an-appletv-remotely/comment-page-1#comment-3862</link>
		<dc:creator>Wise on Tech &#124; Using PHP and a Shell Script to Restart an AppleTV remotely &#8212; via the web</dc:creator>
		<pubDate>Tue, 20 Jul 2010 15:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://software.jonandnic.com/?p=110#comment-3862</guid>
		<description>[...] a follow up to my previous post, here&#039;s how to do the same thing, but from a web browser (say, on your iPhone) -- it assumes you&#039;ve [...]</description>
		<content:encoded><![CDATA[<p>[...] a follow up to my previous post, here&#039;s how to do the same thing, but from a web browser (say, on your iPhone) &#8212; it assumes you&#039;ve [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Wise</title>
		<link>http://www.wiseontech.com/hack/using-applescript-and-a-shell-script-to-restart-an-appletv-remotely/comment-page-1#comment-3823</link>
		<dc:creator>Jonathan Wise</dc:creator>
		<pubDate>Fri, 30 Apr 2010 15:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://software.jonandnic.com/?p=110#comment-3823</guid>
		<description>Thanks! That&#039;s great!</description>
		<content:encoded><![CDATA[<p>Thanks! That&#8217;s great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 242spot</title>
		<link>http://www.wiseontech.com/hack/using-applescript-and-a-shell-script-to-restart-an-appletv-remotely/comment-page-1#comment-3822</link>
		<dc:creator>242spot</dc:creator>
		<pubDate>Fri, 30 Apr 2010 12:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://software.jonandnic.com/?p=110#comment-3822</guid>
		<description>i solved this in a simple script, no need to remove ssh password

see appletv wiki forums

http://forum.atvflash.com/viewtopic.php?f=8&amp;t=3116

script =

property commandString : &quot;ssh frontrow@appletv.local&quot;
property commandString1 : &quot;frontrow&quot;
property commandString2 : &quot;sudo reboot&quot;

tell application &quot;Terminal&quot;
launch
set visible of window 1 to false
if (count of windows) is 1 then
do script commandString in window 1
delay 1
do script commandString1 in window 1
delay 1
do script commandString2 in window 1
delay 1
do script commandString1 in window 1
else
set frontmost of window 1 to true
do script commandString in window 1
delay 1
do script commandString1 in window 1
delay 1
do script commandString2 in window 1
delay 1
do script commandString1 in window 1
end if
end tell
delay 1
tell application &quot;Terminal&quot;
if (count of windows) is 1 then
quit
else
set frontmost of window 1 to true
end if
end tell
tell application &quot;Finder&quot;
display dialog &quot;ATV Rebooted Satis&quot;
end tell


copy that straight into applescript then run. can save as app if required</description>
		<content:encoded><![CDATA[<p>i solved this in a simple script, no need to remove ssh password</p>
<p>see appletv wiki forums</p>
<p><a href="http://forum.atvflash.com/viewtopic.php?f=8&amp;t=3116" rel="nofollow">http://forum.atvflash.com/viewtopic.php?f=8&amp;t=3116</a></p>
<p>script =</p>
<p>property commandString : &#8220;ssh <a href="mailto:frontrow@appletv.local">frontrow@appletv.local</a>&#8221;<br />
property commandString1 : &#8220;frontrow&#8221;<br />
property commandString2 : &#8220;sudo reboot&#8221;</p>
<p>tell application &#8220;Terminal&#8221;<br />
launch<br />
set visible of window 1 to false<br />
if (count of windows) is 1 then<br />
do script commandString in window 1<br />
delay 1<br />
do script commandString1 in window 1<br />
delay 1<br />
do script commandString2 in window 1<br />
delay 1<br />
do script commandString1 in window 1<br />
else<br />
set frontmost of window 1 to true<br />
do script commandString in window 1<br />
delay 1<br />
do script commandString1 in window 1<br />
delay 1<br />
do script commandString2 in window 1<br />
delay 1<br />
do script commandString1 in window 1<br />
end if<br />
end tell<br />
delay 1<br />
tell application &#8220;Terminal&#8221;<br />
if (count of windows) is 1 then<br />
quit<br />
else<br />
set frontmost of window 1 to true<br />
end if<br />
end tell<br />
tell application &#8220;Finder&#8221;<br />
display dialog &#8220;ATV Rebooted Satis&#8221;<br />
end tell</p>
<p>copy that straight into applescript then run. can save as app if required</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Wise</title>
		<link>http://www.wiseontech.com/hack/using-applescript-and-a-shell-script-to-restart-an-appletv-remotely/comment-page-1#comment-3099</link>
		<dc:creator>Jonathan Wise</dc:creator>
		<pubDate>Mon, 30 Mar 2009 12:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://software.jonandnic.com/?p=110#comment-3099</guid>
		<description>Ya, the only way to fix that is to restore your Apple TV and start again. Sorry :-(</description>
		<content:encoded><![CDATA[<p>Ya, the only way to fix that is to restore your Apple TV and start again. Sorry <img src='http://www.wiseontech.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nechry</title>
		<link>http://www.wiseontech.com/hack/using-applescript-and-a-shell-script-to-restart-an-appletv-remotely/comment-page-1#comment-3098</link>
		<dc:creator>Nechry</dc:creator>
		<pubDate>Mon, 30 Mar 2009 12:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://software.jonandnic.com/?p=110#comment-3098</guid>
		<description>Hi, 

I try your trick but before move the sudoers file I screw out of sudo, no set owership...

you have a clue to repare this mistake?

thank</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I try your trick but before move the sudoers file I screw out of sudo, no set owership&#8230;</p>
<p>you have a clue to repare this mistake?</p>
<p>thank</p>
]]></content:encoded>
	</item>
</channel>
</rss>
