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 > Kinkless Getting Things Done
FAQ Members List Calendar Today's Posts

 
Omni and Kinkless Thread Tools Search this Thread Display Modes
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

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
 
I'm not sure what sorting issue you are seeing. If I run your script on a simple document, the sorting seems to work fine. I'd suggest sending your script and a sample input file to the bug reporting address.

One note; it looks like you are turning of 'sort postponed', but never turning it on. Maybe that is part of the issue.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Kinkless Desktop?? Fireproof OmniFocus 1 for Mac 10 2010-01-16 02:41 PM
Kinkless and OF jochen OmniFocus 1 for Mac 2 2007-07-02 04:28 PM


All times are GMT -8. The time now is 07:18 PM.


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