I wish to:
A) identify all tiddlers tagged with tag Project....
B) list all tiddlers tagged Action AND tagged with the "project
tiddler name from (A)" AND with a modification date older than 30
days.
C) Repeat (B) for all identified 'project-tiddler-names' in (A)
My idea is a fET copy-paste mutilation, but I'm uncertain of syntax
etc. And I'm not sure I get (C) to work at all. Would appreciate it if
anyone could tell me where I go wrong, if there are more suitable
solutions etc.
(The particular age-checking part below is correct as it is from
Abego's original example [1] )
<<forEachTiddler
where
'tiddler.tags.contains("Project")'
script '
var i=0;
var acts = new Array();
function oldActs(tiddler) {
acts[i]=store.getMatchingTiddlers("Action && " +
tiddler.title);
while (acts[i] != acts[acts.length]) {
var compareDate = new Date();
compareDate.setDate(compareDate.getDate() - 30);
if (acts[i].modified < compareDate)
return "* [[" + acts[i].title + "]]\n";
else
return "";
i++;
}
}
'
write 'oldActs(tiddler)'
>>
Thank you!
/Mat
--------------------------------------------------------------------
references:
[1]
http://tiddlywiki.abego-software.de/#[[List%20all%20Tiddlers%20changed%20in%20the%20last%2030%20days]]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---