[topicmapmail] OmniGraffle hackery
Rich Morin
rdm@cfcl.com
Sat, 22 Oct 2005 16:21:58 -0700
Looking at OmniGraffle (OG), I was distressed to find no apparent way
to add arbitrary metadata to edges and nodes. Fortunately, there is
a "back door" for this, in the form of the OG "Action" property.
It turns out that AppleScripts can be attached to either edges or nodes
and that scripts that contain just comments or "useless" code don't
cause OG any grief. Unfortunately, the lines appear to be limited to
about 25 characters, which could be a problem for URIs and such.
Pulls on "hacker" hat... What about:
set uri to "http://www.cfcl.com/rdm"
or even one of these:
set xml to "
<foo>123</foo>
<bar>xyz</bar
"
set yaml to "
foo: 123
bar: 'xyz'
"
Looks like we may have a winner... Now, I just need a script that can
parse OG's *.graffle files, turn them into YALTM, etc. And, of course,
a convention to let my script know which AppleScript "code" to parse.
-r
--
email: rdm@cfcl.com; phone: +1 650-873-7841
http://www.cfcl.com - Canta Forda Computer Laboratory
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.