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

 
Auto-highlight past dates? Thread Tools Search this Thread Display Modes
I have OO3. Is there a way to highlight dates in an outline dynamically (automatically) that are earlier than the current date? In other words, highlight dates that are in the past?

I have three columns in several of my OO3 task lists, and the third column is a "due date." I would like to make the text in that column red if the date is in the past.
 
No, this is *not* an ability OmniOutliner has. You could use an AppleScript to do it though. This might be something possible in a future release.

Last edited by DerekM; 2007-02-09 at 03:45 PM.. Reason: yes... not typing words == bad
 
Quote:
Originally Posted by DerekM
No, this is an ability OmniOutliner has. You could use an AppleScript to do it though. This might be something possible in a future release.
I'll assume from the context that you mean this is NOT an ability OO has.

Take my vote for adding this feature to a future version. In the meantime, I shall see about an AppleScript solution....
 
I know this is an older thread but here is the script that I cam up with to solve this problem. I am open to any ideas for improvement:

repeat with theRow in (every row whose state is unchecked)
set theDate to value of cell "Due Date" of theRow
if theDate is not missing value then
remove every named style of style of theRow from named styles of style of theRow
set myStyle to named style ("Overdue")
if theDate < TodaysDate then
add myStyle to named styles of style of theRow
else
remove myStyle from named styles of style of theRow
end if
else
-- missing value but unchecked (means I forgot to set a date)
remove every named style of style of theRow from named styles of style of theRow
set myStyle to named style ("Blankdue")
add myStyle to named styles of style of theRow
end if
end repeat
 
I'm curious...why do you remove all the existing styles before adding the Overdue or Blankdue style?
 
Mostly because I don't know what I'm doing :)

As I recall I was getting a error message without it being in there. Is there a better way.
 
Hmmm....you're right. It does give an "NSInternalScriptError". Looks like that happens because the style you're trying to add is already in the styles for that row. I'm pretty sure that's an AppleScript limitation, but we do have an open bug for it.

As long as there's no other style info you need to keep, just throwing them all away is probably a reasonable shortcut.

To really work around this issue, you'd want to check if the style you're about to apply is already in the list, and if so, don't reapply it. You'd also need to take out the style that's no longer true. So yeah, lots more complicated.

Nice shortcut!
 
Quote:
Originally Posted by Lizard
To really work around this issue, you'd want to check if the style you're about to apply is already in the list, and if so, don't reapply it. You'd also need to take out the style that's no longer true. So yeah, lots more complicated.

Nice shortcut!

Just got lucky, sometimes brute force is easier. Thanks though.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add items with current or past start dates to my contexts BonaduceVsButtafuoco OmniFocus 1 for Mac 4 2013-04-15 08:38 AM
How do I view past start dates in forecast? eller0001 OmniFocus for iPad 3 2011-06-23 10:54 PM
Recurring events with future due dates showing as "past" in forecast psychguy OmniFocus for iPad 3 2010-10-07 11:14 AM
Bug: Priority Column WBS Auto-highlight stephenrussett OmniPlan General 1 2010-02-15 08:55 PM
Start Dates should default to the Future, not the Past bluevelveetaelvis OmniFocus 1 for Mac 4 2007-11-24 06:57 PM


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


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