View Single Post
Applescript isn't very well documented in OG and I'm having difficulty with some basic issues. The first issue, is how to address a graphic object.

The script below is supposed to modify a graphic object with the tag 'object_1' but it doesn't appear to work.

Code:
tell application "OmniGraffle Professional 5"
	tell canvas of front document 
		set targetGraphic to first graphic whose tag contains "object_1" 
		set text of targetGraphic to {text:"differenttext", color:{1.0, 1.0, 1.0}, alignment:center}
	end tell 
end tell
More broadly, the things I'm trying to do are:
  • Simulate typing into a text box
  • Animate a dialog appearing/disappearing
  • Animate an object after clicking on a different object (slider control)
  • Fade graphics in and out

To do all this, my first hurdle is simply addressing objects

thanks,
-steve