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

Applescript for “pro-only” fill patterns? Thread Tools Search this Thread Display Modes
I'm trying to script a graph in which rectangles are filled with things like diagonal lines and so on. The “pro-only” fill mode, on the right in the color dialog in the fill inspector, looks great, but when I save a shape filled in that manner as applescript, I always get a property “fill color: {0.000000, 0.000000, 0.000000, 0.000000}” regardless of the fill pattern used.

Is this just something that can't be scripted, or is there some way to do it that the “save as applescript” function is ignoring?
That does look like a gap.

For a similar effect, you might experiment with fill.image
I agree it's a gap.

I checked the XML of an OG file containing an object with a patterned fill color. It looks like the fill color is represented as Base64-encoded TIFF image data. I take that to mean that OG doesn't use an enumeration or other parameterization to specify pattern types, which would make it hard to turn pattern into an Applescript property.

On the other hand, the patterns are stored as png files in the OG application bundle, with names following "patternX.png" with integer X, so there probably is an enumeration used somewhere within the color picker.

Why copy-as-Applescript returns a four-parameter zero color for patterned fill is a mystery.

Last edited by john.gersh; 2013-02-08 at 07:59 AM..

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
shadow without fill sprockett OmniGraffle General 1 2013-01-17 06:38 PM
fill with textures? sknoogleplex OmniGraffle General 4 2008-01-06 09:53 AM
Custom Patterns / Fills wavefront OmniGraffle General 1 2007-12-19 03:42 AM
Fill the area of a line vocaro OmniGraffle General 2 2006-11-09 01:23 PM
Changing fill color in AppleScript action mduser63 OmniGraffle General 1 2006-06-27 10:23 PM

All times are GMT -8. The time now is 10:40 PM.

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