Quote:
Originally Posted by jdkunesh
Does every canvas need to have a 'Notes' layer for the second script to work?
|
Yes, but the following redraft should suspend that requirement:
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 oCanvas to canvas canvasNumber of theDocument
try
set lyrNotes to layer "Notes" of oCanvas
set blnVisible to visible of lyrNotes
set visible of lyrNotes to not blnVisible
end try
end repeat
end tell
Script editing software for Applescript will generally have an "Open Dictionary" command in the menu system (probably under the File menu), which will enable you to look at documentation of an application's object model.