The Omni Group Forums

The Omni Group Forums (
-   OmniGraffle General (
-   -   Setting diagram style through Applescript ? (

RobTrew 2008-10-15 03: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 08:52 PM

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

john.gersh 2011-03-08 06: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 07:37 AM.

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