Omnigraffle AppleScript documentation
Steve Hayman
shayman at mac.com
Wed Jun 18 11:56:10 PDT 2008
On 14-Jun-08, at 2:58 PM, Ian Piper wrote:
> I found an example where you get a filled arrow like this:
> set head type of aLine to "FilledArrow"
>
> but that doesn't help if I want a hollow arrow (or a dotted line,
> or...).
A great trick is to use the "Copy as Applescript" feature.
Draw what you want, say, a line with a hollow arrow.
Select it, and use Edit > Copy as > Applescript
Then, in Script Editor, "paste". And you see the applescript necessary
to recreate what you just drew, which in this case is -
tell application "OmniGraffle Professional"
tell canvas of front window
make new line at end of graphics with properties {point list: {{79,
208}, {220, 266}}, head type: "Arrow"}
end tell
end tell
I don't think I would have ever got anywhere applescripting
OmniGraffle without this great Copy as Applescript feature!
More information about the OmniGraffle-Users
mailing list