[TxMt] web color palates for TM?

Ollivier Robert roberto+textmate at keltia.freenix.fr
Thu Nov 25 09:37:12 UTC 2004


According to Jarkko Laine:
> The command also puts a newline character after the color value. This 
> can be avoided by recording a macro where you:
> 1) Invoke the command.
> 2) Click right-arrow.
> 3) Click backspace.

You should be able to get rid of it by changing the line to the following
(untested):

    <string>echo -e "color = `osascript -e 'tell application "Finder" to
activate' -e 'tell application "Finder" to choose color'`; puts
color.inject('#') {|tot,cur| tot += ('%04X' % cur)[0..1]}.chomp" | ruby</string>                       
(notice the added .chomp).
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004



More information about the textmate mailing list