The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Changing fill color in AppleScript action Thread Tools Search this Thread Display Modes
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"
I love AppleScript, but AppleScript dictionaries sure are hard to decipher.
 
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}
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript for “pro-only” fill patterns? gshenaut OmniGraffle General 2 2013-02-08 06:48 AM
Color Fill question Joshbuss OmniGraffle for iPad 2 2012-01-05 07:10 AM
how to applescript changing a row's background color? wfiveash OmniOutliner 3 for Mac 4 2010-10-28 02:02 PM
Change fill color with actions supermann OmniGraffle General 0 2010-09-03 08:57 AM
Changing Fill Colours on Boxes?? gibby OmniGraffle General 1 2009-11-04 09:28 PM


All times are GMT -8. The time now is 07:18 AM.


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