The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   How to create key-value pairs when creating a shape (http://forums.omnigroup.com/showthread.php?t=8202)

Joel 2009-02-06 02:51 PM

I believe there is a way to do this, however it's outside of my brain at the moment, I'll have to check with engineering about it.

jelaryma 2009-06-11 11:24 AM

[QUOTE=Joel;54845]I believe there is a way to do this, however it's outside of my brain at the moment, I'll have to check with engineering about it.[/QUOTE]

I was looking for exactly this functionality. I'd like to create a template/shape/stencil that will pull key/value pairs from the objects and place the values on the shape. A simple example is an org chart:
[CENTER]
[FONT="Arial Black"][B]<<title>>[/B][/FONT]
[FONT="Arial"]<<name>>[/FONT][/CENTER]

Might be displayed as

[CENTER] [FONT="Arial Black"][B]Chief Executive Officer[/B][/FONT]
[FONT="Arial"]Steve Jobs[/FONT][/CENTER]

Please let me know if this is possible...

whpalmer4 2010-02-06 06:16 PM

It is possible. In your stencil, you would have text fields such as

<%userdata title%>
<%userdata name%>

and you would use the Properties: Note inspector to add key/data pairs for title and name.

trouble clef 2011-08-12 11:27 AM

[QUOTE=dghpts;38564]Joel! You're here!
Thanx for that info!

Is there a way to copy the key data fields from one shape to another?
Sort of like painting withe the properties brush?[/QUOTE]

Is it not possible to add key - data pairs to an existing shape using AppleScript? Trying to do this myself.

If anyone has used MailTags the latest version does much the same thing. Of course the evolution of this would be to make the data and keys openly accessible as I think I'm right in saying that they aren't indexed by Spotlight.

whpalmer4 2011-08-12 12:16 PM

I've posted a couple of scripts that set key data pairs for existing shapes using Applescript. See my posts in

[url]http://forums.omnigroup.com/showthread.php?t=18864[/url]

and

[url]http://forums.omnigroup.com/showthread.php?t=17457[/url]

for sample code.

trouble clef 2011-08-12 12:27 PM

Thanks - good starting point.


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

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