Hi Mans,
Sorry for any inconvenience. Here's the update to the script to batch-
update the text of certain tagged tiddlers to that of some
template ...now hopefully avoiding any of the troubles you've had:
<script label="Replace Text Now!">
var t,i,
tids=store.getTaggedTiddlers('UPDATE'),
txt=store.getTiddlerText('NEWTEXT')||'';
if(!confirm("Really replace the contents of:\n"+
tids.map(function(t){return t.title;})))return;
for(i=0;i<tids.length;i++){
t=tids[i];
store.saveTiddler(
t.title,
t.title,
store.getTiddlerText(t.title)+'\n'+txt,
config.options.txtUserName,
new Date(),
t.tags,
t.fields,
t.created
);
};
</script>
--
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.