View Single Post
Quote:
Originally Posted by wfiveash View Post
What attribute can I use to just change a selected row's background color?
Code:
property pstrBackGd : "text-background-color"
property plstRGBEmphasis : {65535, 57054, 42407}

tell application id "com.omnigroup.OmniOutlinerPro3"
	try
		set oStyle to style of first selected row of front document
	on error
		return
	end try
	
	tell attribute pstrBackGd of oStyle
		if value is default value then
			set value to plstRGBEmphasis
		else
			set value to default value
		end if
	end tell
end tell
--

Last edited by RobTrew; 2010-10-28 at 01:29 PM.. Reason: Amended the code to use the default value correctly