View Single Post
I use this to turn off and on wireframe annotations. I attach the script to a button on the first page. Change the layer name "Annotation" to your "index" layer.

tell application "OmniGraffle Professional 5"
set theDocument to front document
set allCanvases to canvases of theDocument
repeat with canvasCount from 1 to (length of allCanvases)
set nextCanvas to item canvasCount of allCanvases
set nextCanvasLayers to layers of nextCanvas
repeat with layercount from 1 to (length of nextCanvasLayers)
set nextLayer to item layercount of nextCanvasLayers
if (name of nextLayer is "Annotation") then
set currentVisibility to visible of nextLayer
set currentPrintability to prints of nextLayer
set visible of nextLayer to not currentVisibility
set prints of nextLayer to not currentPrintability
end if
end repeat
end repeat
end tell