The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Checked row colours Thread Tools Search this Thread Display Modes
Does anyone have or know of an Applescript that will modify the font colour for a row based upon it's checked status.

For example I would like to have all rows with ticked boxes 'green', all those with blank boxes 'red' and those marked '-' coloured 'amber'.

I thought I would throw out the question before diving in to create a script myself.

Any suggestions would be gratefully received,

Martin
 
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
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
confused about text colours jojoba OmniFocus 1 for Mac 2 2012-11-07 07:18 AM
Changing Fill Colours on Boxes?? gibby OmniGraffle General 1 2009-11-04 09:28 PM
Web colours not working correctly in OmniWeb? Steeve OmniWeb General 7 2009-04-01 02:59 AM
Due soon not updating along with action colours jl24 OmniFocus for iPhone 1 2008-07-16 11:14 AM
colours (I would like blue for today) dave1304 OmniFocus 1 for Mac 8 2007-11-29 10:27 PM


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


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