How to declare a RGBA color type?

In my scriptable app (iClip) I like to add a way to specify colors that include an alpha channel value.

Is there some predefined class for this already in the sdef context? If not, I guess I just declare it as a list of four values, ideally doubles from 0 to 1, as it’s easier to handle then the standard 16 bit values.

Actually … is there even a float type in Applescript? What’s its name I need to use in the type=“…” declaration in the sdef? Huh, it seems that “float” is to be used.

No, just the old Carbon-era RGB.

It sounds like you want a type of real as a list.

2 Likes