On Oct 3, 2011, at 2:16, Bill Shack wrote:

> setting note colors by name works fine for me
> 
> tell application "Skim"
>       set default note colors to {highlight note color: deep pink}
> end tell
> 
> but according to the wiki I should be able to use any rgba or rgb color. 
> However, when I try
> 
> tell application "Skim"
>       set default note colors to {highlight note color:{255, 192, 203}}
> end tell
> 
> I get black instead of the expected pink. What am I missing?

That's not black, it's a very dark color. What you're missing is the range of 
the components in AppleScript. It's not 8-bits, it's 16-bits. So the 100% value 
is 65535, not 255.

Christiaan



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to