a suggestion for a future release

Greg Titus greg at omnigroup.com
Thu Jan 31 13:07:40 PST 2002


On Thursday, January 31, 2002, at 08:04  AM, Todd Thomas wrote:

>
> For us Applescripters it'd be cool if OG would import an app's 
> applescript dictionary much like it does a project builder pbxproj 
> file? The diagram could include the class hierarchy along with the 
> properties for each class. I was just looking through OG's applescript 
> dictionary thinking I should create a OG diagram of it. Has anyone 
> already done that?
>

Not yet, but that's a great idea.

Here's a quick overview:

The basic class of object in Graffle is a "graphic". It has position 
properties like center, origin,size, and layer. It has line drawing 
properties like draws on/off, color, thickness, pattern. It has shadow 
properties like on/off and color. And it has some other random 
properties like grid alignment, lock, and URL.

There are three main types of "graphic": lines, groups, and solids.

Lines have source and destination graphics, line ending types and 
scales, and has the points on the line as elements.

Groups simply have the graphics they contain as elements.

Solids are a general term for both shapes and polygons. Solids have text 
properties like autosizing, placement, text contents, and fill 
properties like color and gradients. In addition, polygons have point 
elements and shapes have a shape name property.

You can ask a document for its graphics, or for subsets of those 
graphics by asking for lines, solids, groups, shapes, or polygons. A 
document also have layers. Each layer has the same set of elements as 
the overall document does, so you can get the lines, solids, et cetera 
on a particular layer as well.

Hope this helps,
	--Greg




More information about the OmniGraffle-Users mailing list