The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Showing/Hiding a notes layer across document using Applescript Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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:

Code:
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
Code:
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..
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing/Hiding Layers Fails To Export To PDF pixel_pirate OmniGraffle General 6 2013-10-29 10:22 AM
Best Practice Question: Notes Inspector vs Notes Layer atwoodsa OmniGraffle General 2 2011-08-10 09:01 AM
Error message when showing/hiding Guides fjordaan OmniGraffle General 0 2010-04-30 12:10 PM
Images in notes not showing Ol!ver OmniFocus for iPhone 11 2008-09-04 10:29 AM
Shortcut for showing/hiding notes? Rolf_schmolling OmniOutliner 3 for Mac 1 2007-10-24 03:17 PM


All times are GMT -8. The time now is 12:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.