Bug: lineType reading and writing fails in JavaScript for Automation (JXA)

If we select a line in an OG6 window and run the following AppleScript:

tell application "OmniGraffle"	
	set s to selection of item 1 of windows
	properties of item 1 of s
end tell

The type of the line is included in the properties, and expressed as a line-type constant.

If, however, we look at the JavaScript for Applications version of the .sdef window:

  1. the line type values are given as strings rather than defined constants
  2. the strings shown are not, in reality, returned by reading the lineType ( the lineType property always returns undefined )
  3. writing the line type using these strings fails. All lines are created as straight, and straight lines fail to convert to bezier or orthogonal when scripted.

JS returns line type of all lines as ‘undefined’

Application("OmniGraffle")
.windows[0]
.selection()[0].properties();

This post was flagged by the community and is temporarily hidden.