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

 
Metadata or classes for imported sitemaps Thread Tools Search this Thread Display Modes
I'm making a template for sitemaps. Typically, my company's sitemaps start out either in OmniOutliner or just straight up XML. Is it possible to add some sort of metadata or class to items in Outliner or XML so that when I import into OG (and have it automatically render the sitemap), OG will assign specific shapes from my stencils to specific items. For instance, assigning a stencil with PDF icon in it to something I've flagged as a PDF.

I've been crawling through the OG documentation, and can't seem to figure out if this is possible. I would love if there is a way to automate this process, rather than having to do it manually. So far as I can tell, the only things OG recognizes on import are hierarchical relationships like parent to child, etc.
 
I'm fairly certain this is indeed possible, however you'll have to bear with me as it's probably going to require some hefty AppleScript to pull it off, and I am sadly not the sharpest tool in the shed when it comes to scripting.

Now the first obstacle is that the .graffle file format isn't the same as Outliner's, .graffle is really just a modified property list (we want to eventually move over to using strict XML for it in the future).

However, notes in OmniOutliner will translate properly into notes in OmniGraffle, so I'm suspecting that if you were to flag the entry as a particular file type, then you can run an AppleScript to change the graphic to whatever is desired after importing it into OmniGraffle.

That said, I should also point out that there's already user-defined metadata for graphics in OmniGraffle, it's just not exposed to the UI but one can use AppleScript once again to set that info, if it's any help.
__________________
"Vroom! Vroom!!"
 
Thanks Joel! I've never done anything with AppleScript myself, but I have a guy on staff who can probably whip something up.

One quick follow up: First, how do we access the notes for each object with AppleScript? AND, how would we loop through all those objects?
 
Notes can be set pretty simply in AppleScript, if you were creating a shape it would have the property of {notes:{text:"foobar"}, that sort of thing.

Looping is just basic if/then/else stuff.
__________________
"Vroom! Vroom!!"
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Metadata in Titles/Comments zaxaz OmniOutliner 3 for Mac 1 2012-02-08 10:31 AM
same task/different resources (courses/classes) loic OmniPlan General 0 2011-09-05 03:54 AM
Tags / Metadata in 1.7 ? shishk OmniFocus 1 for Mac 2 2009-03-24 07:53 PM
Auto-numbered Sitemaps krischan68 OmniGraffle General 2 2008-08-15 05:26 AM
Cocoa Programming Classes or Tutoring in SF Bay Area? dbfreq Omni Lounge 0 2008-03-18 06:13 AM


All times are GMT -8. The time now is 05:00 AM.


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