[tw] Re: if tagged A and B, then auto add tag C

2009-01-19 Thread Amzg
Ok, just want to report that in the end I used a combo of a few suggestions above. Mr.Shulman and cmari - it would not have been possible without your generous help. Thank you!!! Thus; In a tiddler I first have a few of these (to set various combinations of what should be encrypted with what);

[tw] Re: if tagged A and B, then auto add tag C

2009-01-18 Thread Amzg
I really appreciate everyones help! I'm fooling around with all the great suggestions and will report how it works out. - Meanwhile; how do I insert a tag directly (via forEachPlugin)? What is the command? (and without erasing all existing tags but if there's an option to overwrite a

[tw] Re: if tagged A and B, then auto add tag C

2009-01-18 Thread Amzg
Maybe I should clarify that a little. Here's what I'm attempting; forEachTiddler where 'tiddler.tags.containsAll([foo])' write 'tiddler.tags.XXX(bar)' XXX is 'supposed to' be some magic word resulting in adding 'bar' as a tag to all the relevant tiddlers. (I

[tw] Re: if tagged A and B, then auto add tag C

2009-01-18 Thread Eric Shulman
forEachTiddler         where         'tiddler.tags.containsAll([foo])'         write         'tiddler.tags.XXX(bar)' XXX is 'supposed to' be some magic word resulting in adding 'bar' as a tag to all the relevant tiddlers. Try this: store.setTiddlerTag(tiddler.title,true,bar) The three

[tw] Re: if tagged A and B, then auto add tag C

2009-01-18 Thread cmari
OK, try this, which should give you a checkbox that will add the tag foobar to any tiddler already tagged with both foo and bar: forEachTiddler where 'tiddler.tags.containsAll([foo, bar])' write '|checkbox [[+tiddler.title+|foobar]] [[]] [[]] [[]]

[tw] Re: if tagged A and B, then auto add tag C

2009-01-17 Thread Amzg
Ah! Thank you, I thought it was more complex than it was. How elegant. However, the type of tag a tiddler is supposed to get depends on *two* tags - i.e tiddlers that are tagged both with 'Private' and either of MyStuff, HerStuff or OurStuff. Renaming it one at a time would not work as. In a

[tw] Re: if tagged A and B, then auto add tag C

2009-01-17 Thread cmari
Hi Mat! It sounds to me as though you're looking for two separate, though related, things (but possibly more!): 1. (Retroactively) add tags to existing tiddlers. 2. From now on, automatically add certain tags when creating new tiddlers If you'd prefer (manual) checkboxes to the more automatic