<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Allan,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks!  I downloaded ThisService and used it to define my own service, a Perl script that translates IP addresses.  Works in Terminal, but the output went right into the Terminal instead of appearing as a tooltip.  So I tried PerlTk to open a small text window to display the result, but PerlTk requires that X11 be running.  So I rewrote it in Ruby and used Tk in Ruby.  It works!<DIV><BR class="khtml-block-placeholder"></DIV><DIV><DIV>My only gripe is that that the window opens somewhere on the screen other than next to the cursor.  I realize that I'm far afield from TextMate here, but can you suggest another approach that would open a tooltip window next to the cursor, as TextMate does?</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Times New Roman; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- Pete</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On Jul 30, 2007, at 7:58 PM, Allan Odgaard 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 31. Jul 2007, at 00:02, Pete Siemsen wrote:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[...] I can place the caret in an IP address, autonomous system number or VLAN number, hit the "help" key, and TextMate looks up and displays a tooltip window that tells me what I'm looking at [...] I'd like to have the same functionality when I'm logged into a device interactively.</DIV> </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; ">Not as convenient as customizing TextMate, but OS X has “services” which are actions you can run on the selection in basically every application. ThisService [1] is a way to write such services in a scripting language. So in practice you might be able to write a service for this IP address look-up which can be used in Terminal.</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; ">[1]: <A href="http://wafflesoftware.net/thisservice/">http://wafflesoftware.net/thisservice/</A></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BODY></HTML>