View Single Post
So, I draw a shape in Omnigraffle Pro (in this case a simple text box), and then select Save as applescript from the menu. I get the following results with osascript:

Code:
$ pbpaste | osascript -
131:138: syntax error: Expected “,” or “}” but found identifier. (-2741)
And here is a typical applescript, directly from pbpaste:
Code:
tell application "OmniGraffle Professional"
	tell canvas of front window
		make new shape at end of graphics with properties {side padding: 0, fill: no fill, draws stroke: false, draws shadow: false, autosizing: full, size: {20.000000, 14.000000}, text: {text: "abc", alignment: right, text: "abc"}, origin: {69.000000, 132.000000}, vertical padding: 0}
	end tell
end tell
This also happens with other shapes such as lines, rectangles, etc. What am I doing wrong?