[TxMt] web color palates for TM?

Allan Odgaard allan at macromates.com
Wed Nov 24 20:34:14 UTC 2004

On Nov 24, 2004, at 20:13, Allan Odgaard wrote:

>> I made a quick little command for TextMate that shows a color picker, 
>> and inserts the hex value.
> Cool! :) Though you may want to mention that it requires Ruby 1.8.

And for those w/o Ruby 1.8 here's a version which uses awk for the 

osascript -e 'tell application "Finder" to activate' -e 'tell 
application "Finder" to choose color'|tr -d ,|awk 
'{printf("#%02x%02x%02x", $1/256, $2/256, $3/256)}'

More information about the textmate mailing list