Below is a script that looks for dates that are prior to today's, and changes them to today's. It seems to work, but in fact it doesn't quite. It appears that setting the date this way for some reason prevents "keep sorted by date" from working on those rows that have been updated this way. Can the script be changed to address this issue, or is this a bug in Outliner Pro? I hope that someone who knows more about this stuff can help me.
--Henri
--Henri
Code:
property date_column_name : "Date" tell application "OmniOutliner Professional" set TheDoc to front document tell document of front window set date_index to index of column named date_column_name repeat with aRow in (every row of TheDoc) set TheDate to value of cell date_index of aRow if TheDate < (current date) then set value of cell date_index of aRow to current date end if end repeat set sorting postponed to false end tell end tell