The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Changing fill color in AppleScript action (http://forums.omnigroup.com/showthread.php?t=899)

mduser63 2006-06-27 04:58 PM

Changing fill color in AppleScript action
 
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:

[CODE]set the fill color of self to "red"[/CODE]

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

mduser63 2006-06-27 09:23 PM

Well, I figured it out. You have to give the color as a set of RGB values like so:

[CODE]set the fill color of self to {65535, 0, 0}[/CODE]


All times are GMT -8. The time now is 06:10 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.