Re: Scripting OmniGraffle
Re: Scripting OmniGraffle
- Subject: Re: Scripting OmniGraffle
- From: Timothy Bates <email@hidden>
- Date: Fri, 10 May 2002 10:25:12 +1000
- .mxoez?+: O?W^h1]g}IB\WO2A=6#`2^rL?jAu,r8EcKz@UG.r.7[$&Ym;j8^Wp;/KAlcda MO/$} $"[ c?\#d@cuN
- 9+kli1>@: KaeEcbn$EIG)tY@^[7y`lyrI<4S(cnqzmTD&4<tTkuNR(4dweN}SUlDX/X^c>"
>
When I want to make a new shape/graphic on a document I can't seem to find
>
the right syntax. Either I get an error or nothing happens.
1. Make an object
2. Edit->Copy-as...-> AppleScript
3. Look at the script
You get something like
tell front document of application "OmniGraffle"
make new shape at end of graphics with properties {gradient angle: 339,
origin: {108, 81}, size: {117, 108}}
end tell
That being said scripting is a bit flakey in the current version, so you end
up saying some things that you shouldn't have to to get stuff to work.
BUT the ability to do something, then copy it as a script is a fantastic
learning aid.
iTim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.