<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Quick iGTD Next Actions with&#160;Quicksilver</title>
	<link>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/</link>
	<description>up to the minute updates</description>
	<pubDate>Thu, 16 Oct 2008 03:17:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Ryan</title>
		<link>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12535</link>
		<author>Ryan</author>
		<pubDate>Thu, 12 Jul 2007 02:41:33 +0000</pubDate>
		<guid>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12535</guid>
		<description>Ah, yes.  That is it. Thanks.</description>
		<content:encoded><![CDATA[<p>Ah, yes.  That is it.&nbsp;Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brett</title>
		<link>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12449</link>
		<author>brett</author>
		<pubDate>Mon, 09 Jul 2007 12:04:50 +0000</pubDate>
		<guid>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12449</guid>
		<description>First thing I would try is removing the pair of curly brackets on line 39 before the %x.  Everything else appears fine to me at first glance...</description>
		<content:encoded><![CDATA[<p>First thing I would try is removing the pair of curly brackets on line 39 before the %x.  Everything else appears fine to me at first&nbsp;glance&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12448</link>
		<author>Ryan</author>
		<pubDate>Mon, 09 Jul 2007 11:47:13 +0000</pubDate>
		<guid>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12448</guid>
		<description>So I'm trying to get this thing to work.  I have everything installed and all the paths set up correctly, but if I edit the script to use the Growl notification, I get this in the console:

/Users/rcn/Applications/top5.rb:39: unknown regexp options - lcal
/Users/rcn/Applications/top5.rb:39: syntax error
{}%x(/usr/local/bin/growlnotify -m #{Escape.shell_command(output)} -t "Top 5 Next Actions" -s -a "iGTD")
                                 ^
2007-07-09 04:40:15.931 Quicksilver[18572] Task failed.

And my script looks like:
&lt;code&gt;
#!/usr/bin/ruby
#
require 'rubygems'
require 'sqlite3'
require 'escape'

dbToUse = "#{ENV['HOME']}/Documents/Personal/iGTD.sql"

db = SQLite3::Database.new( dbToUse )
rows = db.execute( "SELECT task.ZNAME,project.ZNAME 
                    FROM ZTASK AS task, ZPROJECT as project 
                    WHERE task.ZPARENTPROJECT = project.Z_PK
                    AND task.ZNEXTACTION = '1' 
                    AND task.ZMAYBE = '0'
                    AND task.ZCLEANEDUP = '0'
                    AND task.ZWAITINGFOR = '0'
                    AND task.ZPRIORITY = '1'" )
output = ""
count = 1
rows.each do &#124;task,project&#124;
    output += "#{count}. #{task}r    [#{project}]r"
    if count == 5
      %x(/usr/local/bin/growlnotify -m #{Escape.shell_command(output)} -t "Top 5 Next Actions" -s -a "iGTD")
#    print output
      exit
    end
    count += 1
end
{}%x(/usr/local/bin/growlnotify -m #{Escape.shell_command(output)} -t "Top 5 Next Actions" -s -a "iGTD")
# print output
&lt;/code&gt;

Any ideas anyone?  I'm probably just being stupid, so feel free to let me know that.

Thanks,

Ryan</description>
		<content:encoded><![CDATA[<p>So I&#8217;m trying to get this thing to work.  I have everything installed and all the paths set up correctly, but if I edit the script to use the Growl notification, I get this in the console:</p>
<p>/Users/rcn/Applications/top5.rb:39: unknown regexp options - lcal<br />
/Users/rcn/Applications/top5.rb:39: syntax error<br />
{}%x(/usr/local/bin/growlnotify -m #{Escape.shell_command(output)} -t &#8220;Top 5 Next Actions&#8221; -s -a &#8220;iGTD&#8221;)<br />
                                 ^<br />
2007-07-09 04:40:15.931 Quicksilver[18572] Task failed.</p>
<p>And my script looks like:<br />
<code><br />
#!/usr/bin/ruby<br />
#<br />
require 'rubygems'<br />
require 'sqlite3'<br />
require 'escape'</p>
<p>dbToUse = "#{ENV['HOME']}/Documents/Personal/iGTD.sql"</p>
<p>db = SQLite3::Database.new( dbToUse )<br />
rows = db.execute( "SELECT task.ZNAME,project.ZNAME<br />
                    FROM ZTASK AS task, ZPROJECT as project<br />
                    WHERE task.ZPARENTPROJECT = project.Z_PK<br />
                    AND task.ZNEXTACTION = '1'<br />
                    AND task.ZMAYBE = '0'<br />
                    AND task.ZCLEANEDUP = '0'<br />
                    AND task.ZWAITINGFOR = '0'<br />
                    AND task.ZPRIORITY = '1'" )<br />
output = ""<br />
count = 1<br />
rows.each do |task,project|<br />
    output += "#{count}. #{task}r    [#{project}]r"<br />
    if count == 5<br />
      %x(/usr/local/bin/growlnotify -m #{Escape.shell_command(output)} -t "Top 5 Next Actions" -s -a "iGTD")<br />
#    print output<br />
      exit<br />
    end<br />
    count += 1<br />
end<br />
{}%x(/usr/local/bin/growlnotify -m #{Escape.shell_command(output)} -t "Top 5 Next Actions" -s -a "iGTD")<br />
# print output<br />
</code></p>
<p>Any ideas anyone?  I&#8217;m probably just being stupid, so feel free to let me know that.</p>
<p>Thanks,&nbsp;Ryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brett</title>
		<link>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12141</link>
		<author>brett</author>
		<pubDate>Sat, 30 Jun 2007 15:07:58 +0000</pubDate>
		<guid>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12141</guid>
		<description>Yes, that's probably my preference as well.  I just wanted to offer an option for once that required as few external programs as possible ;).</description>
		<content:encoded><![CDATA[<p>Yes, that&#8217;s probably my preference as well.  I just wanted to offer an option for once that required as few external programs as possible&nbsp;;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Porter</title>
		<link>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12140</link>
		<author>Brett Porter</author>
		<pubDate>Sat, 30 Jun 2007 14:48:27 +0000</pubDate>
		<guid>http://blog.circlesixdesign.com/2007/06/30/igtd-top-5-next-actions/#comment-12140</guid>
		<description>Very cool script - thanks for that!

I've personally gone for the growl notification, and putting the script somewhere quicksilver can find it so 'cmd-space top' brings it up</description>
		<content:encoded><![CDATA[<p>Very cool script - thanks for that!</p>
<p>I&#8217;ve personally gone for the growl notification, and putting the script somewhere quicksilver can find it so &#8216;cmd-space top&#8217; brings it&nbsp;up</p>
]]></content:encoded>
	</item>
</channel>
</rss>
