Let me raise again the 2nd part of my recent question on archiving @done tasks. The “archive @done items” menu command works globally archiving all done tasks and adding project name/stripping @done tag depending on the preferences settings.
I would like to selectively archive @done tasks (e.g. current selected task). In general for a given task with subtasks I like to keep track of which subtasks I’ve done (with notes) to follow progress until the whole task is done. In short I don’t want to archive the subtasks until the whole task is completed. The current global command doesn’t allow me to do that.
There used to be scripts in TP2 that allowed this. I miss this in TP3 and am hoping that the functionality can be provided either in the programme or as script.
Just tried out the script and it works just like you said i.e. I can selectively archive @done items (the highlighted ones) leaving the other ones in place Wonderful
One small tweak I would like to see. The “archive all @done tasks” of TP3 removes the indentation of the archived task - your script leaves the original indentation which looks a little funny at time and is inconsistent with the TP3 archive behaviour.
I’ve look through the script but cannot figure out how to do it myself ? Can someone provide the final magical tweak to the script of ComplexPoint ?
( Like the TaskPaper 3 menu Tags > Archive @done items, it does still preserve any indentation relationships amongst clusters or sub-trees of items which are all @done, and are all archived together in the same script run )
The 3.5 preview contains one or two small changes in API, I think. Once they are documented and there is a release version, we can adjust the scripts, which are currently written for the non-preview version.
Hi all, I was heavily relying upon this script for my productivity, and now that I’ve finally got around to updating to TaskPaper 3.5 this script is broken.
Any ideas how to fix it easily? If not, I’ll try to comb through the code over the holidays.
Can you describe what’s broken? I just tried running in latest taskPaper preview release and it seems to work for me there. Note you might have to change:
var ds = Application("com.hogbaysoftware.TaskPaper3")
That hardcodes the script to the Mac App Store version of TaskPaper. Instead I use:
var ds = Application("TaskPaper")
Which works with all the different versions, but then has the problem that it will also try to work with TaskPaper 2 if you still have that installed.
Oh man, well that’s embarrassing. That was indeed the issue. Though I don’t know why it worked before since I’ve always used the TP downloaded from your site.