PDA

View Full Version : Changing fill color in AppleScript action


mduser63
2006-06-27, 05:58 PM
I'm trying to figure out how to change the fill color of a clicked-on object in OmniGraffle by means of an AppleScript run as the action for the object. Can someone give me a simple example. I've sort of half-guessed the following, but it doesn't work:

set the fill color of self to "red"

I love AppleScript, but AppleScript dictionaries sure are hard to decipher.

mduser63
2006-06-27, 10:23 PM
Well, I figured it out. You have to give the color as a set of RGB values like so:

set the fill color of self to {65535, 0, 0}