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.
- 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
- 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 .selection().properties();