I played around with it a bit more and found a work about myself. Thanks for the help though, you rock :)
On Sep 20, 4:21 am, Zans Mihejevs <[email protected]> wrote: > Thanks a lot, Mans, this script works great. However I can't seem to > get it working with the TestCheckBoxes plugin. When I try to use them > together like this: > [_{}{}{ > var tag="Complete"; > var tids=store.getTaggedTiddlers(tag); > store.suspendNotifications(); > for (var i=0; i<tids.length; i++) {var t=tids[i]; > store.setTiddlerTag(t.title,false,tag); > store.saveTiddler(t.title,t.title,t.text,t.modifier,t.modified,t.tags,t.fields);} > > }] > > I get broken output. However after some experimenting I found out that > if I remove the bracket signs from the "for" loop like so: > > [_{}{}{ > var tag="Complete"; > var tids=store.getTaggedTiddlers(tag); > store.suspendNotifications(); > for (var i=0; i<tids.length; i++) var t=tids[i]; > store.setTiddlerTag(t.title,false,tag); > store.saveTiddler(t.title,t.title,t.text,t.modifier,t.modified,t.tags,t.fields);}] > > the checkbox will work properly, but will only run through the loop > once (obviously as the brackets are removed). So in other words the > presence of the two brackets is incompatible with the checkbox plugin. > Would you have any ideas on a workaround to this problem? > > On Sep 20, 3:12 am, Måns <[email protected]> wrote: > > > Hi Zans> Is there a way to make the process automated, though? > > > > > I'm using the ForEachTiddler plugin and I want it to Remove a tag > > > > > from all tiddlers matching certain criteria. > > > I'm not sure what You mean by "matching certain criteria" - however > > there are several ways to remove a tag from several tiddlers at once. > > #1 > > RenametagsPluginhttp://mptw.tiddlyspot.com/#RenameTagsPlugin-If you > > delete the tagname tiddler you will be asked if You want to remove the > > tag from all tiddlers tagged with the tagname. > > #2 > > You can use a script to remove a tag from all tiddlers tagged with > > that tag: > > > <script label="Remove the tag SomeTagName from all tiddlers tagged > > with SomeTagName"> > > var tag="SomeTagName"; > > var tids=store.getTaggedTiddlers(tag); > > store.suspendNotifications(); > > for (var i=0; i<tids.length; i++) { var t=tids[i]; > > store.setTiddlerTag(t.title,false,tag); > > store.saveTiddler > > (t.title,t.title,t.text,t.modifier,t.modified,t.tags,t.fields);} > > > store.resumeNotifications(); > > </script> > > #3 > > I'm sure someone with magic insight (javascript programming) can > > deliver a script which can choose all tiddlers tagged with SomeTagName > > and remove AnotherTagName from all tiddlers tagged with SomeTagName - > > however I'm no TwWizard... just TwSorcerer's apprentice ;-) > > > Regards Måns Mårtensson -- 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.

