<?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: The TextMate URL Scheme</title>
	<atom:link href="http://blog.macromates.com/2007/the-textmate-url-scheme/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.macromates.com/2007/the-textmate-url-scheme/</link>
	<description>TextMate and OS X</description>
	<lastBuildDate>Wed, 03 Feb 2010 16:53:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Jakob Stoeck</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-4263</link>
		<dc:creator>Jakob Stoeck</dc:creator>
		<pubDate>Tue, 15 Sep 2009 17:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-4263</guid>
		<description>&lt;p&gt;The link to Ruy is obsolete. The new working version: http://ruy.ca/2007/04/01/handling-txmt-urls-in-windows&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The link to Ruy is obsolete. The new working version: <a href="http://ruy.ca/2007/04/01/handling-txmt-urls-in-windows" rel="nofollow">http://ruy.ca/2007/04/01/handling-txmt-urls-in-windows</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: john p.</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-3618</link>
		<dc:creator>john p.</dc:creator>
		<pubDate>Tue, 27 Jan 2009 02:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-3618</guid>
		<description>&lt;p&gt;Regarding tow and three slashes: As i understand things, the two slashes denoted a URL, wehter loval, file , http or ftp.&lt;/p&gt;

&lt;p&gt;The three slashes is , unsuprisingly or not, two  + one; the one slash following the two for url, denotes the path / :&lt;/p&gt;

&lt;p&gt;e.g. 
* :~ mypooter$   file://etc/profile
 would look for file realative to the home folder, and not find it, unless you put it there.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;:~ mypooter$   file:///etc/profile
would look look for the same from the system root folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I have learnt.
PLum&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Regarding tow and three slashes: As i understand things, the two slashes denoted a URL, wehter loval, file , http or ftp.</p>

<p>The three slashes is , unsuprisingly or not, two  + one; the one slash following the two for url, denotes the path / :</p>

<p>e.g. 
* :~ mypooter$   file://etc/profile
 would look for file realative to the home folder, and not find it, unless you put it there.</p>

<ul>
<li>:~ mypooter$   file:///etc/profile
would look look for the same from the system root folder.</li>
</ul>

<p>So I have learnt.
PLum</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Williams</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-3608</link>
		<dc:creator>Craig Williams</dc:creator>
		<pubDate>Wed, 21 Jan 2009 21:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-3608</guid>
		<description>&lt;p&gt;I would like to open urlencoded text from my website the same way it is done with AppleScript. Is this possible?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AppleScript eg.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href=&quot;applescript://com.apple.scripteditor?action=new&amp;script=display%20dialog%20%22This%20is%20from%20a%20webpage%22&quot;&gt;Open Script&lt;/a&amp;lg;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Will Open in Script Editor as&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;display dialog &quot;This is from a webpage&quot;&lt;/p&gt;
&lt;/blockquote&gt;
</description>
		<content:encoded><![CDATA[<p>I would like to open urlencoded text from my website the same way it is done with AppleScript. Is this possible?</p>

<p><strong>AppleScript eg.</strong></p>

<blockquote>
  <p>&lt;a href=&#034;applescript://com.apple.scripteditor?action=new&amp;script=display%20dialog%20%22This%20is%20from%20a%20webpage%22&#034;&gt;Open Script&lt;/a&lg;</p>
</blockquote>

<p><strong>Will Open in Script Editor as</strong></p>

<blockquote>
  <p>display dialog &#034;This is from a webpage&#034;</p>
</blockquote>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-2920</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Sat, 24 Nov 2007 22:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-2920</guid>
		<description>&lt;p&gt;The rationale behind the two slashes is that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;It means the URL gets properly underlined in most contexts. As mentioned in a previous comment, I also have a &lt;code&gt;register&lt;/code&gt; command, and since then I have also introduced another one. Both are likely to appear in email or similar where they cannot explicitly be marked up as URLs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The system’s &lt;code&gt;NSURL&lt;/code&gt; class is used for handling the scheme, and it expects the two slashes.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
</description>
		<content:encoded><![CDATA[<p>The rationale behind the two slashes is that:</p>

<ol>
<li><p>It means the URL gets properly underlined in most contexts. As mentioned in a previous comment, I also have a <code>register</code> command, and since then I have also introduced another one. Both are likely to appear in email or similar where they cannot explicitly be marked up as URLs.</p></li>
<li><p>The system’s <code>NSURL</code> class is used for handling the scheme, and it expects the two slashes.</p></li>
</ol>]]></content:encoded>
	</item>
	<item>
		<title>By: What is a URL?</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-2918</link>
		<dc:creator>What is a URL?</dc:creator>
		<pubDate>Sat, 24 Nov 2007 00:06:52 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-2918</guid>
		<description>&lt;p&gt;I don&#039;t think that there should be two slashes after the &quot;txmt:&quot;. In http urls the two slashes indicate that we will be giving an internet address. Local files usually have three slashes.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I don&#039;t think that there should be two slashes after the &#034;txmt:&#034;. In http urls the two slashes indicate that we will be giving an internet address. Local files usually have three slashes.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-2485</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Fri, 27 Apr 2007 20:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-2485</guid>
		<description>&lt;p&gt;Chris Adams: It should re-use the window, if the file is already open.&lt;/p&gt;

&lt;p&gt;If it doesn’t, the cause is most likely that the paths do not look the same to TextMate, for example because of symbolic links.&lt;/p&gt;

&lt;p&gt;Try a) ⌘-click the icon in the title bar of the open window and b) right-click your stack trace link and copy the link to the clipboard. Now compare the two paths.&lt;/p&gt;

&lt;p&gt;If they are identical, provide as much data (and/or isolate the problem), and I will look into.&lt;/p&gt;

&lt;p&gt;And btw sorry for not seeing your comment in the spam queue before now.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Chris Adams: It should re-use the window, if the file is already open.</p>

<p>If it doesn’t, the cause is most likely that the paths do not look the same to TextMate, for example because of symbolic links.</p>

<p>Try a) ⌘-click the icon in the title bar of the open window and b) right-click your stack trace link and copy the link to the clipboard. Now compare the two paths.</p>

<p>If they are identical, provide as much data (and/or isolate the problem), and I will look into.</p>

<p>And btw sorry for not seeing your comment in the spam queue before now.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-2484</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Fri, 27 Apr 2007 20:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-2484</guid>
		<description>&lt;p&gt;Josh: In addition to the &lt;code&gt;open&lt;/code&gt; command, there is also &lt;code&gt;register&lt;/code&gt;. This takes normal URL name and password parameters (e.g. &lt;code&gt;txmt://Allan:«license»@register&lt;/code&gt;). The purpose of this is making registration easier (for the user) and such link is presented on the “Thanks for your purchase” page (and I might send HTML emails in the future, with such links).&lt;/p&gt;

&lt;p&gt;When opening such a link, TextMate will ask for confirmation. It doesn’t do this for &lt;code&gt;open&lt;/code&gt; since it would be too intrusive, but I think I’ll do it for non-white listed files and folders in 2.0.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Josh: In addition to the <code>open</code> command, there is also <code>register</code>. This takes normal URL name and password parameters (e.g. <code>txmt://Allan:«license»@register</code>). The purpose of this is making registration easier (for the user) and such link is presented on the “Thanks for your purchase” page (and I might send HTML emails in the future, with such links).</p>

<p>When opening such a link, TextMate will ask for confirmation. It doesn’t do this for <code>open</code> since it would be too intrusive, but I think I’ll do it for non-white listed files and folders in 2.0.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Peters</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-2482</link>
		<dc:creator>Josh Peters</dc:creator>
		<pubDate>Fri, 27 Apr 2007 19:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-2482</guid>
		<description>&lt;p&gt;Allan: thanks for the pointer to RCDefaultApp.  I&#039;ve used it before but forgot all of its capabilities.&lt;/p&gt;

&lt;p&gt;As for the exploits and the txmt scheme: I understand the Apple disk image hole, but I still prefer to avoid (in my opinion) extraneous ways for applications to interact.&lt;/p&gt;

&lt;p&gt;As for the documented part, what other commands does/will Textmate understand beyond &quot;open&quot;?  If none, why have the &quot;open&quot; part at all?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Allan: thanks for the pointer to RCDefaultApp.  I&#039;ve used it before but forgot all of its capabilities.</p>

<p>As for the exploits and the txmt scheme: I understand the Apple disk image hole, but I still prefer to avoid (in my opinion) extraneous ways for applications to interact.</p>

<p>As for the documented part, what other commands does/will Textmate understand beyond &#034;open&#034;?  If none, why have the &#034;open&#034; part at all?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-2479</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Thu, 26 Apr 2007 19:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-2479</guid>
		<description>&lt;p&gt;Josh Peters: Install &lt;a href=&quot;http://www.rubicode.com/Software/RCDefaultApp/&quot; rel=&quot;nofollow&quot;&gt;RCDefaultApp&lt;/a&gt;. Then you can view all URL scheme handlers on your system, and disable those you do not feel comfortable with.&lt;/p&gt;

&lt;p&gt;As for the exploits and the &lt;code&gt;txmt&lt;/code&gt; scheme: The exploits were possible because several of Apple’s URL schemes had (documented) ways to run code (the disk image scheme though indirectly allowed exploits because it had a way to place code on the users machine).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Josh Peters: Install <a href="http://www.rubicode.com/Software/RCDefaultApp/" rel="nofollow">RCDefaultApp</a>. Then you can view all URL scheme handlers on your system, and disable those you do not feel comfortable with.</p>

<p>As for the exploits and the <code>txmt</code> scheme: The exploits were possible because several of Apple’s URL schemes had (documented) ways to run code (the disk image scheme though indirectly allowed exploits because it had a way to place code on the users machine).</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Peters</title>
		<link>http://blog.macromates.com/2007/the-textmate-url-scheme/#comment-2475</link>
		<dc:creator>Josh Peters</dc:creator>
		<pubDate>Thu, 26 Apr 2007 04:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2007/04/24/the-textmate-url-scheme/#comment-2475</guid>
		<description>&lt;p&gt;Hey that&#039;s great; how do I turn this off?  The Mac has had enough URL schemes setup by default and I really don&#039;t want to wait for some hole to be found in Textmate that can screw with anything on my system.  I am sorry if this sounds harsh: I am a big fan of Textmate and enourage innovative programming, just not at the cost of security.&lt;/p&gt;

&lt;p&gt;I&#039;m also certain that Macromates has the best of intentions with this URL scheme, but I would rather not chance anything.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey that&#039;s great; how do I turn this off?  The Mac has had enough URL schemes setup by default and I really don&#039;t want to wait for some hole to be found in Textmate that can screw with anything on my system.  I am sorry if this sounds harsh: I am a big fan of Textmate and enourage innovative programming, just not at the cost of security.</p>

<p>I&#039;m also certain that Macromates has the best of intentions with this URL scheme, but I would rather not chance anything.</p>]]></content:encoded>
	</item>
</channel>
</rss>

