Set TargetTiddler to the target you want, SomeTiddler is your source
of tiddlers, and the following script goes in your script-run tiddler.

When you finish editing this script, it will pump your tag list into
the target tiddler. Note that it will wipe out any existing tags
there. However, you will probably need to open the target tiddler
once, edit, and "done", in order to get rid of brackets around tags
that don't need brackets. I'm sure there is a smarter way to do the
clean up.

<script>
   var t=store.getTiddlerText('SomeTiddler','');
   var target = store.getTiddler('TargetTiddler') ;
   var taglist = t.split('\n') ;
   var tagout = new Array ;
   for(var i=0 ; i < taglist.length ; i++) {
     if ( taglist[i] ) tagout.push('[[' + taglist[i] + ']]') ;
   }
   target.tags = tagout ;
   return 'Mischief Managed' ;
</script>

On Apr 10, 8:01 pm, Måns <[email protected]> wrote:
> In my specific case - it would be fantastic if I could have a script
> that could automate the whole process of taking a list (from a
> tiddler):
> 1) enclose each line in doubled square-brackets
> 2) transpose the list from vertical to horisontal
> 3) put the resulting row of wikilinks into the tagfield of a tiddler

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to