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:
- the line type values are given as strings rather than defined constants
- the strings shown are not, in reality, returned by reading the lineType ( the lineType property always returns
undefined
) - 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();