View Single Post
You can assign a nested property list to reset the text property of an existing shape, and apply different formats to different parts of the string ...

tell application "OmniGraffle Professional 5"
	tell canvas of front window
		set text of front shape to {{text:"text in two "}, {text:"fonts", font:"HoeflerText-Regular", size:24}}
	end tell
end tell
[UPDATE] To read the formatting properties of different attribute runs, you need to avoid coercing the text property to a string variable. Examples of using references further down this thread.


Last edited by RobTrew; 2012-02-09 at 01:21 PM..