Examples of Scripting OmniGraffle

Robert Love <[email protected]> Sun, 28 Nov 2010 16:16:38 -0600
Newsgroups gmane.comp.graphics.omnigraffle.user
Message-ID <[email protected]>
I want to use OG to draw shapes on top of a GIF image.  My goal is to =
get to where I can do it algorithmically.  I see the option to draw =
something and then "Copy As Applescript" but when I try and play it back =
in the Applescript editor, nothing happens.

Are there collections of Applescripts for OG I can look at and learn =
from?

The script I capture looks like this:


tell application "OmniGraffle Professional 5"
	tell canvas of front window
		make new shape at end of graphics with properties =
{textPosition:{0.1, 0.15}, fill:no fill, size:{72.0, 72.0}, stroke =
color:{1.0, 0.827967, 0.345213}, name:"Circle", origin:{191.0, 134.0}, =
textSize:{0.8, 0.7}}
	end tell
end tell


What should I see when I execute that?  I have OG open with my GIF image =
already loaded.

--=20
Bob Love                   =20

"Save the books...BURN the censors!" =20