The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniOutliner 3 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=9)
-   -   Script to toggle display of bullets (http://forums.omnigroup.com/showthread.php?t=13064)

RobTrew 2009-07-17 12:40 AM

Script to toggle display of bullets
 
I find that visual distraction is reduced by hiding bullets during certain modes of writing.

At other stages it's slightly clearer to see them.

FWIW, the following toggles bullet display at the document level (but does not override any locally applied styles).

[CODE]tell application "OmniOutliner Professional"
set cBulletState to "item-handle-mode(com.omnigroup.OmniOutliner)"
set cStateOne to "hover"
set cStateTwo to "always"

tell style of front document
set oAttrib to attribute cBulletState
if (value of oAttrib = cStateOne) then
set value of oAttrib to cStateTwo
else
set value of oAttrib to cStateOne
end if
end tell
end tell[/CODE]


[COLOR="White"]--[/COLOR]


All times are GMT -8. The time now is 10:54 PM.

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