View Single Post
Hi all,

I picked up on a thread on this forum from last year, in which someone posted a method for creating a tree structure of shapes from a google sitemap file.

(http://forums.omnigroup.com/showthread.php?t=112)

I was using this script happily in Omnigraffle Pro 4 but it breaks slightly in v5. The main problem is that it creates too many connections between parent and child objects: basically if you have a collection of urls like this:

www.bob.com/foo/bar/1.htm
www.bob.com/foo/bar/2.htm
..
www.bob.com/foo/bar/14.htm

then you will get 14 connections between the shapes for www.bob.com and foo and 14 between foo and bar. I can get around this if I can figure out a way for AppleScript to count how many lines there are between two shapes. I know that there is a count function in AppleScript, but is there a way in Omnigraffle 5 to tell whether there is a line connecting two shapes?

This leads me to the wider question: is there any documentation for Omnigraffle's AppleScript support? The kind of thing I am looking for is what the available options are for "head type" when creating a line (the Dictionary only says it is of type text). I found an example where you get a filled arrow like this:
set head type of aLine to "FilledArrow"

but that doesn't help if I want a hollow arrow (or a dotted line, or...).

If this information is documented anywhere else for other languages that would be a start: I don't mind doing a bit of exploring.

Thanks,


Ian.
--