<?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>David Nunez &#187; yojimbo</title>
	<atom:link href="http://www.davidnunez.com/tag/yojimbo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidnunez.com</link>
	<description>David Nunez lives, wonders, tinkers and builds in Boston.</description>
	<lastBuildDate>Mon, 06 Feb 2012 16:00:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Applescript to import NNW smart folder into Yojimbo</title>
		<link>http://www.davidnunez.com/2007/03/20/applescript-to-import-nnw-smart-folder-into-yojimbo/</link>
		<comments>http://www.davidnunez.com/2007/03/20/applescript-to-import-nnw-smart-folder-into-yojimbo/#comments</comments>
		<pubDate>Wed, 21 Mar 2007 03:14:32 +0000</pubDate>
		<dc:creator>davidnunez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[365experiments]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[netnewswire]]></category>
		<category><![CDATA[yojimbo]]></category>

		<guid isPermaLink="false">http://www.davidnunez.com/2007/03/20/applescript-to-import-nnw-smart-folder-into-yojimbo/</guid>
		<description><![CDATA[Today I modified this script which facilitates Yojimbo importing from NetNewsWire I&#8217;ve set up a smart folder in NetNewsWire that grabs the latest 50 flagged headlines from any feed. I needed this script because I had a technorati watch feed for dorkbot and I wanted to collect blog mentions to send around. I was just [...]]]></description>
			<content:encoded><![CDATA[<p>Today I modified <a href="http://samuraicoder.net/netnewswire_to_yojimbo_integration">this script</a> which facilitates <a href="http://www.barebones.com/products/yojimbo/index.shtml">Yojimbo</a> importing from <a href="http://www.newsgator.com/NGOLProduct.aspx?ProdID=NetNewsWire">NetNewsWire</a></p>

<p>I&#8217;ve set up a smart folder in <a href="http://www.newsgator.com/NGOLProduct.aspx?ProdID=NetNewsWire">NetNewsWire</a> that grabs the latest 50 flagged headlines from any feed.</p>

<p>I needed this script because I had a <a href="http://www.technorati.com">technorati</a> watch feed for dorkbot and I wanted to collect blog mentions to send around.  I was just flagging articles that mentioned dorkbot-austin and wanted to export a list of bookmarks.</p>

<p>With this, the workflow is now:</p>

<ol>
<li>Quickly scan headlines in NetNewsWire and do CMD-Shift-L to flag interesting content.</li>
<li>Run this script on the smart folder (this creates a web archive in <a href="http://www.barebones.com/products/yojimbo/index.shtml">Yojimbo</a> of each of these articles and removes the flag on the headline in NetNewsWire)</li>
<li>Over time, spend a few minutes working down the list of archived articles in Yojimbo and tag/delete them further as necessary.</li>
</ol>

<p>Potential problem: This makes it really easy to procrastinate making decisions on what to read and what to do with what I read.  Following this strategy will lead to a large pile of unsorted links which I&#8217;ll very likely will never find the time to sort through.  </p>

<p>I think <a href="http://www.devon-technologies.com/products/devonthink">DEVONThink</a> does a better job of scanning and grouping incoming pieces of text.  </p>

<p>I should probably rewrite this to send flagged content directly to DEVONThink.  Then, instead of queueing up a long list of articles to read, I&#8217;ll let DEVONThink suggest articles for me to read as I do research.  Anything that I think I&#8217;d want to read immediately I could tag with &#8220;@Read&#8221; or something similar.</p>

<p><pre>
    tell application "NetNewsWire"
        try
            set userInput to text returned of (display dialog "Enter Tag:" default answer "untagged")
            set oldDelims to AppleScript's text item delimiters
            set AppleScript's text item delimiters to {", ", ","}
            set h_tags to text items of userInput
            set AppleScript's text item delimiters to oldDelims
            if (index of selected tab is not 0) then
                set tabnum to index of selected tab + 1
                set taburls to URLs of tabs
                set h_URL to (get item tabnum of taburls)
                set tabtitles to titles of tabs
                set newItemTitle to (get item tabnum of tabtitles)
                tell application "Yojimbo"
                    --set newItem to make new bookmark item with properties {name:newItemTitle, location:h_URL}
                    set newItem to make new web archive item with contents h_URL
                    add tags h_tags to newItem
                    set flagged of newItem to true
                    set isFlagged of h to false
                end tell
            else if exists selectedSubscription then
                repeat with h in headlines of selectedSubscription
                    set h_URL to URL of h
                    set h_title to title of h
                    set isFlagged of h to false
                    tell application "Yojimbo"
                        --set newItem to make new bookmark item with properties {name:h_title, location:h_URL}
                        set newItem to make new web archive item with contents h_URL
                        add tags h_tags to newItem
                        set flagged of newItem to true
                    end tell
                end repeat
            else
                error "No headline is selected."
            end if
        on error error_message number error_number
            if the error_number is not -128 then
                try
                    display alert "NetNewsWire" message error_message as warning
                on error number error_number
                    if error_number is -1708 then display dialog error_message buttons {"OK"} default button 1
                end try
            end if
        end try
    end tell
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidnunez.com/2007/03/20/applescript-to-import-nnw-smart-folder-into-yojimbo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

