The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Setting diagram style through Applescript ? (http://forums.omnigroup.com/showthread.php?t=10229)

RobTrew 2008-10-15 02:34 PM

Setting diagram style through Applescript ?
 
Can't see this in the Applescript dictionary for Omnigraffle - is it accessible ?

(Would like to bypass the Choose Diagram Style dialogue, which is works fine but is a little cumbersome).

cyleigh 2011-03-07 07:52 PM

A bump to a really really old post, is this possible?

john.gersh 2011-03-08 05:19 AM

While Diagram Style doesn't appear to be an accessible property of Document, Template is. It's cumbersome to set up, but you could make a template for each diagram style you'd like to use. (Template Chooser, New Template, Choose Diagram Style, Save.) After that you can say, for example,

tell application "OmniGraffle Professional 5"
set the template of the document of the first window to "Clouds"
end tell

(Note that you apparently need to relaunch OG before it can see new templates.)


All times are GMT -8. The time now is 05:57 PM.

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