tell application "OmniGraffle"
tell canvas of front window
make new shape at end of graphics with properties {(null): {227.613281, 79.898438}, (null): {250.699219, 135.812500}, (null): {0.404275, 0.333180, 1.000000}}
end tell
end tell
The "null" stuff has to be wrong. This is OmniGraffle 4.1.2, Mac OS 10.11.4.
This was the easiest test case I could make: a new document, one shape in it (rectangular). But it didn't work.
What a wild, crazy, fabulous feature this could be for me though. I've never heard of such a thing. Thank you for pointing it out!
On Apr 7, 2016, at 12:18 PM, Rob Lewis <
email@hidden> wrote:
One feature that can be a godsend is the command to “Copy as AppleScript”. You can just make a selection in your drawing and then use this command. It will place the AppleScript code to recreate the item(s) on the clipboard. From there you can paste it into your script and tweak as desired. (I suppose you could store the code in a field in your database, too.)