View Single Post
I am trying to globally show/hide a layer called "Notes" which exists in every canvas using an applescript.

What I have so far is:

tell application "OmniGraffle Professional 5"
	set theDocument to front document
	set canvasCount to count of canvases of theDocument
	repeat with canvasNumber from 1 to canvasCount
		set canvas of front window to canvas canvasNumber of theDocument
		set the visible of layer "Notes" to true
	end repeat
end tell
set the visible of layer "Notes" to true
- OG doesn't like this. In fact I can't work out how to do anything with the layers within a canvas - I can't get Applescript to return how many there are, their names etc.

Any suggestions from a Graffle guru out there?

Thank you!

Last edited by Andrew N; 2008-10-16 at 06:52 AM..