<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Perfect! Thanks.<DIV><BR><DIV><DIV>On Nov 29, 2005, at 5:25 PM, Fred B. wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR><DIV><DIV>On 29 Nov 2005, at 23:09, Alec B. Beardsley wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Has anyone come up with a way to view the source of the current page from safari in textmate?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV></BLOCKQUOTE><BR></DIV><DIV>I wrote this AppleScript:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; "><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>try</B></FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>tell</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">application</FONT><FONT class="Apple-style-span" face="Verdana"> "Safari"</FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>if</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>not</B></FONT><FONT class="Apple-style-span" face="Verdana"> (</FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">exists</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">document</FONT><FONT class="Apple-style-span" face="Verdana"> 1) </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>then</B></FONT></DIV><DIV style="text-indent: -166px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 166.5px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana">display dialog</FONT><FONT class="Apple-style-span" face="Verdana"> "You need to open a web location first!" </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">buttons</FONT><FONT class="Apple-style-span" face="Verdana"> {"OK"} </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">default button</FONT><FONT class="Apple-style-span" face="Verdana"> 1</FONT></DIV><DIV style="text-indent: -166px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 166.5px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>return</B></FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>end</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>if</B></FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">mySource</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>the</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">source</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>front</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">document</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>as</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">text</FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>if</B></FONT><FONT class="Apple-style-span" face="Verdana"> (</FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">length</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">mySource</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>is</B></FONT><FONT class="Apple-style-span" face="Verdana"> 0) </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>then</B></FONT></DIV><DIV style="text-indent: -166px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 166.5px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana">display dialog</FONT><FONT class="Apple-style-span" face="Verdana"> "You need to open a web location first!" </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">buttons</FONT><FONT class="Apple-style-span" face="Verdana"> {"OK"} </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">default button</FONT><FONT class="Apple-style-span" face="Verdana"> 1</FONT></DIV><DIV style="text-indent: -166px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 166.5px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>return</B></FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>end</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>if</B></FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">name</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>front</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">document</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>as</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">text</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>end</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>tell</B></FONT></DIV><DIV style="text-indent: -83px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="text-indent: -83px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>tell</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">application</FONT><FONT class="Apple-style-span" face="Verdana"> "TextMate" </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">activate</FONT></DIV><DIV style="text-indent: -83px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">replace_chars</FONT><FONT class="Apple-style-span" face="Verdana">(</FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana">, "http://", "")</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">replace_chars</FONT><FONT class="Apple-style-span" face="Verdana">(</FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana">, "/", ":")</FONT></DIV><DIV style="text-indent: -83px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>if</B></FONT><FONT class="Apple-style-span" face="Verdana"> (</FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>ends with</B></FONT><FONT class="Apple-style-span" face="Verdana"> ".html") </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>or</B></FONT><FONT class="Apple-style-span" face="Verdana"> (</FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>ends with</B></FONT><FONT class="Apple-style-span" face="Verdana"> ".htm") </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>then</B></FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myPath</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> "/tmp/" & </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>else</B></FONT></DIV><DIV style="text-indent: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-tab-span" style="white-space:pre">  </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myPath</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> "/tmp/" & </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myName</FONT><FONT class="Apple-style-span" face="Verdana"> & ".html"</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>end</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>if</B></FONT></DIV><DIV style="text-indent: -83px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre"> </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana">do shell script</FONT><FONT class="Apple-style-span" face="Verdana"> "rm -f " & </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">quoted form</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myPath</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana">do shell script</FONT><FONT class="Apple-style-span" face="Verdana"> "echo " & </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">quoted form</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">mySource</FONT><FONT class="Apple-style-span" face="Verdana"> & " >> " & </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">quoted form</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myPath</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">     </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana">do shell script</FONT><FONT class="Apple-style-span" face="Verdana"> "open -a TextMate " & </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">quoted form</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">myPath</FONT></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; "><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>end</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>try</B></FONT></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; font: normal normal normal 12px/normal Verdana; min-height: 15px; "><BR></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; "><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>on</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">replace_chars</FONT><FONT class="Apple-style-span" face="Verdana">(</FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">this_text</FONT><FONT class="Apple-style-span" face="Verdana">, </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">search_string</FONT><FONT class="Apple-style-span" face="Verdana">, </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">replacement_string</FONT><FONT class="Apple-style-span" face="Verdana">)</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">    </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">AppleScript</FONT><FONT class="Apple-style-span" face="Verdana">'s </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">text item delimiters</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>the</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">search_string</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">   </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>the</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">item_list</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>every</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">text item</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>of</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">this_text</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">AppleScript</FONT><FONT class="Apple-style-span" face="Verdana">'s </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">text item delimiters</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>the</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">replacement_string</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">this_text</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>the</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">item_list</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>as</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">string</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">       </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>set</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">AppleScript</FONT><FONT class="Apple-style-span" face="Verdana">'s </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana">text item delimiters</FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>to</B></FONT><FONT class="Apple-style-span" face="Verdana"> ""</FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-tab-span" style="white-space:pre">      </SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>return</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">this_text</FONT></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; "><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>end</B></FONT><FONT class="Apple-style-span" face="Verdana"> </FONT><FONT class="Apple-style-span" color="#408000" face="Verdana">replace_chars</FONT></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; "><FONT class="Apple-style-span" color="#408000" face="Verdana"><BR class="khtml-block-placeholder"></FONT></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; "><FONT class="Apple-style-span" color="#000000"><SPAN class="Apple-style-span" style="background-color: transparent;">Paste it in Script Editor.app and save as script or application.</SPAN></FONT></DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; ">You can then use LaunchBar, QuickSilver, etc. to launch it...</DIV><DIV style="text-indent: -41px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 41.6px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">______________________________________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(threading gets destroyed and the universe will collapse if you don't)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>