I'm using the standard version of OmniOutliner. How can I add the AppleScript below to OmniOutliner? I've searched the manual and couldn't find that information.
Thanks,
Howard
Quote:
Originally Posted by RobTrew
I would also find oo3 unusable without a simple zooming script which toggles between screen size and print size, but with such a script I find that the issue of display font size simply doesn't arise for me in practice ...
Code:
property pScreenSize : 16
property pPrintSize : 12
property pBackColor : {65535, 65535, 65535} -- {64928, 63055, 60274}
-- OmniOutliner Professional
on run
ToggleSize(pScreenSize, false)
end run
-- Optionally apply a variant screen size directly through LaunchBar
on handle_string(strSize)
try
set lngSize to strSize as integer
on error
return
end try
ToggleSize(lngSize, true)
end handle_string
on ToggleSize(lngSize, blnScreen)
tell application id "OOut"
if (count of documents) < 1 then return
tell style of front document
-- temporarily increase the font size in screen mode
tell attribute "font-size"
if blnScreen then
set pScreenSize to lngSize
set value to pScreenSize
else
set blnScreen to (value is pPrintSize)
if blnScreen then
set value to pScreenSize
else
set value to pPrintSize
end if
end if
end tell
-- temporarily lower the the background contrast in screen mode
tell attribute "text-background-color"
if blnScreen then
set value to pBackColor
else
set value to default value
end if
end tell
end tell
end tell
end ToggleSize
|