<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 20 sept. 05, at 18:57, Eric Peden wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Tue, Sep 20, 2005 at 01:47:49PM +0200, José Campos wrote:</DIV> <BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space"> </SPAN>Is it yet, or will it be possible to get a item like this in</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Safari->Services : "Edit page source in TextMate"?</DIV> <BR></BLOCKQUOTE><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; ">Did you see this?</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; "><A href="http://comox.textdrive.com/pipermail/textmate/2005-September/005718.html">http://comox.textdrive.com/pipermail/textmate/2005-September/005718.html</A></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; ">You could use the AppleScript menu to get an actual menu item for it, as</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">opposed to just having a keystroke. At that point, the only difference</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">between the AppleScript solution and a service would be which menu it</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">appeared on. ;)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV></BLOCKQUOTE><BR></DIV><DIV>Here is a more sophisticated version, it saves the source of the front page of Safari in a temp folder then opens it in TM.</DIV><DIV>If there is no window in Safari or if it's empty, it warns you.</DIV><DIV>If the name of the page contains slashs, it replaces them with colons.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>There's maybe better ways to achieve that, but that's I come up with after encountering numerous problems.</DIV><DIV>AS is useful but can really suck!</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>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: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>return</B></FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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: -124px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 124.8px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></SPAN><FONT class="Apple-style-span" color="#0000FF" face="Verdana"><B>return</B></FONT></DIV><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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: -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>tell</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>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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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><P style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></P><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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><P style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></P><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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><P style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; min-height: 14px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></SPAN><FONT class="Apple-style-span" face="Verdana"><BR class="khtml-block-placeholder"></FONT></P><DIV style="text-indent: -83px;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 83.2px; "><SPAN class="Apple-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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-converted-tab"><FONT class="Apple-style-span" face="Verdana"> </FONT></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;"><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>