Re: Examples of Scripting OmniGraffle
Robert Love <[email protected]> Sun, 28 Nov 2010 16:22:52 -0600
| Newsgroups | gmane.comp.graphics.omnigraffle.user |
|---|---|
| Message-ID | <[email protected]> |
Follow up to my own question. When I Copy As Applescript the name of =
the App is "OmniGraffle Professional" When I run it, the "5" gets added =
to the app name. Why is that?
On Nov 28, 2010, at 4:16 PM, Robert Love wrote:
> 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.
>=20
> Are there collections of Applescripts for OG I can look at and learn =
from?
>=20
> The script I capture looks like this:
>=20
>=20
> 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
>=20
>=20
> What should I see when I execute that? I have OG open with my GIF =
image already loaded.
>=20
> --=20
> Bob Love =20
>=20
> "Save the books...BURN the censors!" =20
>=20
> _______________________________________________
> OmniGraffle-Users mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/omnigraffle-users