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 > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
AppleScript for deleting completed tasks and projects Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I know some people love being able to refer back to tasks they've completed,
and that the 1.1 version has an "Archive Completed Tasks" option, but for those of us who want completed tasks to go away forever and not ever turn up in searches or when using "Any Status" views or whatever, and are sticking with 1.0.3 for now, here's a script to clear out the deadwood.

The script defaults to clearing items that were completed more than 30 days ago, but that's easily changed by editing the script.

The script works its way through the 'default document,' descending into folders and projects as necessary. If a project is set to repeat, then the script skips over that project (it didn't do that until I read about the bug in OF1.1 {grin}) and all the items contained therein.

A task will be deleted if: it is marked as completed, it does not repeat, and if the completion date is 30 or more days in the past. A project will be deleted if it meets those criteria, and is marked "done."

Feedback regarding the script, positive or negative, is always welcome.

I put my copy of this script in [Home Folder]/Library/Scripts/Applications/OmniFocus

Since I have my script menu turned on, I can select "Clear Completed Items" from the script menu when I'm in OmniFocus.
Attached Files
File Type: zip Clear Completed OmniFocus Items.zip (7.0 KB, 509 views)

Last edited by snarke; 2008-09-30 at 01:30 PM..
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
AppleScript for Generating a Report of Completed Tasks gattaca Applying OmniFocus 1 2013-02-24 06:23 AM
Deleting completed recurring Project pakiyabhai OmniFocus 1 for Mac 0 2011-02-04 07:46 PM
Applescript to write todays completed tasks to a text file december76 OmniFocus Extras 7 2010-09-02 11:03 AM
Hide Completed Tasks vs. Deleting Them BillU OmniFocus 1 for Mac 2 2008-01-14 08:51 AM
Add tasks to Completed Projects? type11 OmniFocus 1 for Mac 1 2007-11-30 06:12 PM


All times are GMT -8. The time now is 11:10 AM.


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