Mar 06, '08 07:30:04AM • Contributed by: b.leopard
Problem: The Color Picker is a fantastic tool to select a color, but you can't copy the result for use in other programs. You can extend Color Picker with the free Hex Color Picker, but not everybody likes to receive a HEX code. What about copying the RGB values as text to insert them wherever you want?
Here's my solution: A little AppleScript calls Color Picker and parses the result. A dialog appears, asking you about the desired format for the copied values:
- 8-bit RGB with values from 0 to 65535 (class:RGB color, red:8bitvalue, green:8bitvalue, blue:8bitvalue)
- 16-bit RGB with values from 0 to 255 (class:RGB color, red:16bitvalue, green:16bitvalue, blue:16bitvalue)
- HEX with leading #
ATTENTION: If you are copying from the "color sliders" tab (second from left), than the selcted ColorSync profile will dramatically influence the values. I found no way to get the uncorrected color, nor did I find a solution to receive the name of the choosen colorsync profile.
[robg adds: This works as described.]
