A community of Frontier
and Radio Users


Meridian News


Community List


Regex Project

Some time back, Leonard Rosenthal released a UCMD to bring up the Mac color picker. Since OS8, the Mac now has a nice HTML color picker. This simple script, along with a command key assignment in my custom menu has saved me more time then I can estimate.

It calls up the color picker, and places the returned Hex value (plus a "#") in the clipboard all ready to be pasted back into my script/root/HTML, whatever...

// get color and put in clipboard
on colorPickToClip()
	local
		hexString
		prompt = "Choose a color"
		fl
	fl = ColorPicker.getColorHexString(prompt, @hexString)
	if ( ! fl )
		return false} \//user cancelled
	clipboard.putValue( "#" + hexString )
	return true