View Single Post
A route through such mazes is:
  • Manually create samples (e.g with desired colors and line endings) in OmniGraffle
  • Edit > Copy As > Applescript from the OmniGraffle main menu.
  • Paste into an editor
  • If actually using AS, then edit the application line to something that works (long standing bug)
  • Inductively derive what is needed in Python etc

Thus, for example, I get:
Code:
tell application id "OGfl"
	tell canvas of front window
		make new line at end of graphics with properties {point list: {{228.6165, 176.2299}, {371.6144, 174.2159}}, stroke color: {0.077786, 0.134208, 0.663366}, head type: "EmptyCenterBall", tail type: "StickArrow"}
		make new line at end of graphics with properties {point list: {{224.6235, 150.0542}, {367.6215, 148.0401}}, stroke color: {0.360784, 0.407843, 0.505882}, head type: "UMLInheritance", tail type: "FilledCenterBall"}
		make new line at end of graphics with properties {point list: {{219.5532, 123.8785}, {362.5512, 121.8644}}, stroke color: {1.000000, 0.000000, 0.000000}, head type: "Arrow", tail type: "FilledArrow"}
	end tell
end tell

Last edited by RobTrew; 2012-09-16 at 11:51 PM..