-- Simple Color Picker
-- puts the selected color on the clipboard in the form of: #AABBCC
-- --CBT
set choice to choose color default color {32767, 32767, 32767}
set the clipboard to (do shell script "
HEX=$(printf \"%.4X%.4X%.4X\" " & item 1 of choice & " " & item 2 of choice & " " & item 3 of choice & ")
echo '#'${HEX:0:2}${HEX:4:2}${HEX:8:2}
")
open color-picker in the applescript editor