Can I restrict the color options on Mac?

Roger Eller roger.e.eller at sealedair.com
Sun Apr 7 16:56:25 EDT 2013


I don't know of a way to restrict the choices while showing the actual
colors. If your list is somewhat short, and consists or relatively common
colors, you could just list the color names.

answer "Pick a color:" with "Red" or "Blue" or "Green" or "Orange" or
"Brown" or "Yellow" or "Purple" or "Black" or "White"

I lean toward the OS color picker because the user should have a reasonable
familiarity with the computer/os they use every day.
~Roger


On Sun, Apr 7, 2013 at 4:07 PM, Graham Samuel wrote:

> If you script
>
>   answer color
>
> or
>
>  answer color with "red"
>
> etc on the Mac, you get the standard MacOS color palette, which has six
> different ways of showing colours (I'm British, it's 'colour' over here...
> but I digress). I would rather restrict the user's choice to one of the
> really simple options, the Apple colors. Is there any way of doing this
> still using the OS color picker, or do I have to roll my own?
>
> TIA
>
> Graham



More information about the use-livecode mailing list