<?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"
	>
<channel>
	<title>Comments on: Hacking TextMate to Edit a Blog Post by ID</title>
	<atom:link href="http://www.plasticstare.com/plains/2006/07/28/hacking-textmate-to-edit-a-blog-post-by-id/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.plasticstare.com/plains/2006/07/28/hacking-textmate-to-edit-a-blog-post-by-id/</link>
	<description></description>
	<pubDate>Tue, 18 Nov 2008 15:32:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Dimitris Diavatis</title>
		<link>http://www.plasticstare.com/plains/2006/07/28/hacking-textmate-to-edit-a-blog-post-by-id/#comment-5051</link>
		<dc:creator>Dimitris Diavatis</dc:creator>
		<pubDate>Mon, 29 Oct 2007 22:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.plasticstare.com/plains/?p=99#comment-5051</guid>
		<description>This edited version seems to work. I know there might be some problem in it, with the "select blog" dialog appearing two times.
But the version described here (a year ago) doesn't work with an updated version of textmate
please check :)


&lt;code&gt;
SELECTEDID = ENV['TM_SELECTED_TEXT']

def fetch_post_page
    current_password = self.password
    require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
    result = nil
    TextMate.call_with_progress(:title =&#62; "Fetch Post By Id", :message =&#62; "Contacting Server “#{@host}”…") do
      begin
        result = self.client.getPost(SELECTEDID, self.username, current_password)
      rescue XMLRPC::FaultException =&#62; e
        TextMate.exit_show_tool_tip("Error: #{e.faultString} (#{e.faultCode})")
      end
    end
    @mw_success = true
    self.post = result
    TextMate.exit_create_new_document(post_to_document())
end

def fetch_by_id
fetch_post_page
end
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This edited version seems to work. I know there might be some problem in it, with the &#8220;select blog&#8221; dialog appearing two times.<br />
But the version described here (a year ago) doesn&#8217;t work with an updated version of textmate<br />
please check <img src='http://www.plasticstare.com/plains/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code><br />
SELECTEDID = ENV['TM_SELECTED_TEXT']</p>
<p>def fetch_post_page<br />
    current_password = self.password<br />
    require &#8220;#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb&#8221;<br />
    result = nil<br />
    TextMate.call_with_progress(:title =&gt; &#8220;Fetch Post By Id&#8221;, :message =&gt; &#8220;Contacting Server “#{@host}”…&#8221;) do<br />
      begin<br />
        result = self.client.getPost(SELECTEDID, self.username, current_password)<br />
      rescue XMLRPC::FaultException =&gt; e<br />
        TextMate.exit_show_tool_tip(&#8221;Error: #{e.faultString} (#{e.faultCode})&#8221;)<br />
      end<br />
    end<br />
    @mw_success = true<br />
    self.post = result<br />
    TextMate.exit_create_new_document(post_to_document())<br />
end</p>
<p>def fetch_by_id<br />
fetch_post_page<br />
end<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://www.plasticstare.com/plains/2006/07/28/hacking-textmate-to-edit-a-blog-post-by-id/#comment-1022</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Sun, 28 Jan 2007 20:20:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.plasticstare.com/plains/?p=99#comment-1022</guid>
		<description>The latter comment from MMISoftware I think got garbled. Check out the link: &lt;a href="http://www.mmisoftware.co.uk/weblog/?p=205" rel="nofollow"&gt;http://www.mmisoftware.co.uk/weblog/?p=205&lt;/a&gt; for some alterations to the methods described above that may work for you better. 

Indeed, I don't doubt there are some better ways to go about this. In fact, one could probably write their own bundle, and use that (which I recommend at this point in my experience :)) rather than altering a built in bundle, which is likely to change in the process of updates.

[r]</description>
		<content:encoded><![CDATA[<p>The latter comment from MMISoftware I think got garbled. Check out the link: <a href="http://www.mmisoftware.co.uk/weblog/?p=205" rel="nofollow">http://www.mmisoftware.co.uk/weblog/?p=205</a> for some alterations to the methods described above that may work for you better. </p>
<p>Indeed, I don&#8217;t doubt there are some better ways to go about this. In fact, one could probably write their own bundle, and use that (which I recommend at this point in my experience :)) rather than altering a built in bundle, which is likely to change in the process of updates.</p>
<p>[r]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MMISoftware &#187; Blog Archive &#187; Blogging with TextMate</title>
		<link>http://www.plasticstare.com/plains/2006/07/28/hacking-textmate-to-edit-a-blog-post-by-id/#comment-1021</link>
		<dc:creator>MMISoftware &#187; Blog Archive &#187; Blogging with TextMate</dc:creator>
		<pubDate>Sun, 28 Jan 2007 17:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.plasticstare.com/plains/?p=99#comment-1021</guid>
		<description>[...] I came across a great post over at plasticular inscriptor, which described how to get TextMate to retrieve blog posts by id. [...]</description>
		<content:encoded><![CDATA[<p>[...] I came across a great post over at plasticular inscriptor, which described how to get TextMate to retrieve blog posts by id. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mel</title>
		<link>http://www.plasticstare.com/plains/2006/07/28/hacking-textmate-to-edit-a-blog-post-by-id/#comment-141</link>
		<dc:creator>mel</dc:creator>
		<pubDate>Thu, 10 Aug 2006 14:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.plasticstare.com/plains/?p=99#comment-141</guid>
		<description>Dude you're killlin' me!  Ok, I need to play with TextMate more, cause I didn't know it could do half the things you have been doing on here!  

Cheers!</description>
		<content:encoded><![CDATA[<p>Dude you&#8217;re killlin&#8217; me!  Ok, I need to play with TextMate more, cause I didn&#8217;t know it could do half the things you have been doing on here!  </p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
