View Single Post
Hi,

I have defined styles with names to match the value in my "status" column and then invoke this script to apply the style (with it's color) to the rows depending on status; it should be close to what you are looking for!

Ciao!

tell application "OmniOutliner Professional 3.6.2b1"
set MyDoc to front document
repeat with MyRow in (every row of MyDoc)
named styles of style of MyRow
remove every named style of style of MyRow from named styles of style of MyRow
set MyPriority to value of cell "Status" of MyRow
if MyPriority is not missing value then
set MyNamedStyle to named style (MyPriority as string) of MyDoc
if MyNamedStyle is not missing value then
named styles of style of MyRow
add MyNamedStyle to named styles of style of MyRow
end if
end if
end repeat
end tell