<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bylr.net &#187; safari</title>
	<atom:link href="http://bylr.net/3/category/safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://bylr.net/3</link>
	<description>&#34;you&#039;re at this website. i guarantee it.&#34; -dan byler</description>
	<lastBuildDate>Mon, 21 Jun 2010 19:57:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get Newsfeeds via Safari and NetNewsWire &#8211; script updated</title>
		<link>http://bylr.net/3/2008/02/get-newsfeeds-via-safari-and-netnewswire-script-updated/</link>
		<comments>http://bylr.net/3/2008/02/get-newsfeeds-via-safari-and-netnewswire-script-updated/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 18:19:58 +0000</pubDate>
		<dc:creator>Dan Byler</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[netnewswire]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://bylr.net/3/2008/02/get-newsfeeds-via-safari-and-netnewswire-script-updated/</guid>
		<description><![CDATA[NetNewsWire often does a good job finding the newsfeed of a site &#8212; but it does sometimes choke.

The updated script will still attempt to get the newsfeed straight from NNW. If NNW has instant success, the script will display the feed and offer to copy it to your clipboard:

After one second, if NNW was unsuccessful, [...]]]></description>
			<content:encoded><![CDATA[<p>NetNewsWire often does a good job finding the newsfeed of a site &#8212; but it does sometimes choke.</p>

<p></p><p>The updated script will still attempt to get the newsfeed straight from NNW. If NNW has instant success, the script will display the feed and offer to copy it to your clipboard:</p>
<p><center><a href='http://bylr.net/3/wp-content/uploads/2008/02/success.png' rel="lightbox[Feedsearch]" title='Success'><img src='http://bylr.net/3/wp-content/uploads/2008/02/success.png' border="0" width="400" alt='Success' /></a></center></p>
<p>After one second, if NNW was unsuccessful, the script will direct Safari search for the feed. The searches initiated (in new tabs, of course) include Google (&#8221;site:x rss OR subscribe&#8221;) and RSS Micro.</p>
<p>Quick note about RSS Micro: unlike most blog search engines (Google blog search included), it provides direct links to the relevant feeds. Just click on the RSS icon:</p>
<p><center><a href='http://bylr.net/3/wp-content/uploads/2008/02/rssmicro.png' rel="lightbox[Feedsearch]" title='RSS Micro'><img src='http://bylr.net/3/wp-content/uploads/2008/02/rssmicro.png' border="0" width="400" alt='RSS Micro' /></a></center></p>
<p>Finally: the download includes a script that initiates these searches from Safari without invoking NetNewsWire. Useful if you don&#8217;t use NNW or don&#8217;t want to open it.
</p><p><a href="http://bylr.net/3/wp-content/uploads/2008/02/Get newsfeed scripts.zip">Download here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bylr.net/3/2008/02/get-newsfeeds-via-safari-and-netnewswire-script-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find URL feed via Safari and NetNewsWire</title>
		<link>http://bylr.net/3/2008/02/find-url-feed-via-safari-and-netnewswire/</link>
		<comments>http://bylr.net/3/2008/02/find-url-feed-via-safari-and-netnewswire/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 23:44:24 +0000</pubDate>
		<dc:creator>Dan Byler</dc:creator>
				<category><![CDATA[applescript]]></category>
		<category><![CDATA[netnewswire]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://bylr.net/3/2008/02/find-url-feed-via-safari-and-netnewswire/</guid>
		<description><![CDATA[Guy Kawasaki asked for quick ways to find the RSS feed of a web site. NetNewsWire does a fine job subscribing to sites so I thought it might be up to the task. It is.

Run this to pull the current website from Safari, subscribe in NetNewsWire, and return the RSS feed URL, optionally copying it [...]]]></description>
			<content:encoded><![CDATA[<p>Guy Kawasaki <a href="http://twitter.com/guykawasaki/statuses/717665032">asked</a> for quick ways to find the RSS feed of a web site. NetNewsWire does a fine job subscribing to sites so I thought it might be up to the task. It is.</p>

<p></p><p>Run this to pull the current website from Safari, subscribe in NetNewsWire, and return the RSS feed URL, optionally copying it to the clipboard.</p>
<pre>
<div class="codesnip-container" ><div class="applescript codesnip" style="font-family:monospace;"><span class="kw3">tell</span> <span class="kw1">application</span> <span class="st0">&quot;Safari&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">set</span> thisPage <span class="kw3">to</span> <span class="kw1">do JavaScript</span> <span class="st0">&quot;document.URL&quot;</span> <span class="kw3">in</span> <span class="kw1">document</span> 1<br />
<span class="kw3">end</span> <span class="kw3">tell</span><br />
<span class="kw3">tell</span> <span class="kw1">application</span> <span class="st0">&quot;NetNewsWire&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">activate</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">set</span> subcount <span class="kw3">to</span> <span class="br0">&#40;</span><span class="kw1">count</span> <span class="kw3">of</span> subscriptions<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">set</span> theresult <span class="kw3">to</span> subscribe <span class="kw3">to</span> thisPage<br />
&nbsp; &nbsp; &nbsp; &nbsp; delay <span class="nu0">2</span> &nbsp;<span class="co1">--gives NNW time to retrieve the RSS feed</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">set</span> thefeed <span class="kw3">to</span> RSS URL <span class="kw3">of</span> subscription <span class="br0">&#40;</span>subcount <span class="sy0">+</span> 1<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">if</span> thefeed <span class="kw3">is</span> <span class="kw2">equal</span> <span class="kw3">to</span> thisPage <span class="kw3">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">display dialog</span> <span class="st0">&quot;No feed found&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">return</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">end</span> <span class="kw3">if</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">display dialog</span> thefeed <span class="kw1">buttons</span> <span class="br0">&#123;</span><span class="st0">&quot;Clipboard&quot;</span>, <span class="st0">&quot;OK&quot;</span><span class="br0">&#125;</span> default button 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">if</span> <span class="kw2">the</span> button returned <span class="kw3">of</span> <span class="kw2">the</span> <span class="kw1">result</span> <span class="kw3">is</span> <span class="st0">&quot;Clipboard&quot;</span> <span class="kw3">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">set <span class="kw2">the</span> clipboard to</span> thefeed<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">end</span> <span class="kw3">if</span><br />
<span class="kw3">end</span> <span class="kw3">tell</span></div></div>
</pre>
<p><a href="applescript://com.apple.scripteditor/?action=new&#038;script=tell application &quot;Safari&quot;%0D%09   set thisPage to do JavaScript &quot;document.URL&quot; in document 1%0D%09end tell%0D%09tell application &quot;NetNewsWire&quot;%0D%09activate%0D%09set subcount to (count of subscriptions)%0D%09set theresult to subscribe to thisPage%0D%09  delay 2%0D%09set thefeed to RSS URL of subscription (subcount + 1)%0D%09if thefeed is equal to thisPage then%0D%09display dialog &quot;No feed found&quot;%0D%09return%0D%09end if%0D%09display dialog thefeed buttons {&quot;Clipboard&quot;, &quot;OK&quot;} default button 1%0D%09if the button returned of the result is &quot;Clipboard&quot; then%0D%09set the clipboard to thefeed%0D%09end if%0D%09end tell">Click here to open the script and give it a whirl.</a></p>
<p><i>Update:</i> Renamed &#8220;NetNewsWire 3&#8243; to &#8220;NetNewsWire&#8221; since that&#8217;s what the app is called when you download it.</p>
<p>Also, NetNewsWire takes a split second to work its magic. If the script isn&#8217;t working for a site, try increasing the &#8220;delay 2&#8243; line to &#8220;delay 5&#8243; or something.</p>
]]></content:encoded>
			<wfw:commentRss>http://bylr.net/3/2008/02/find-url-feed-via-safari-and-netnewswire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- Dynamic Page Served (once) in 1.014 seconds -->
