View Single Post
Quote:
Originally Posted by Yata-Hey View Post
I too have been waiting for the OO4 update for over 4 years, ever since I first switched from PC to Mac. I was hoping to use OO back then, but the lack of a zoom feature made it unusable for me.
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