Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color well values



On Tuesday, August 26, 2003, at 11:37 AM, Rhon Fitzwater wrote:

This is the second time I am posting this message. No one replied the first time. Someone out there has to know how to do this...

I have a color well that I want to get the RGB values from so I can
save the values to a file.

set text color of text field "timerPreview" of tab view item
"PreviewTab" of tab view "tabView" of window "main" to color of color
well "tcw" of tab view item "TimerTab" of tab view "tabView" of window
"main"

Above works fine. But below does not work:

set colorValues to color of color well "tcw" of tab view item
"TimerTab" of tab view "tabView" of window "main"
display dialog colorValues --just for testing purpases

I tried the following

set foo to color of color well "myWell" of window 1
set text color of text field "myText" of window 1 to foo
log foo

foo is an array of 3 values. The numbers look like 0-65535 of R G and B

You can pull out the values as item 1,2 and 3 and build a new array with numbers.

Display dialog appearently doesn't do the coercion from an array automagically.

-Mark
http://www.cafeshops.com/govshirts
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >Color well values (From: Rhon Fitzwater <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.