Thanks for the ideas and the script...

Eric - how do I use the script and what does it do - I know I ought to
understand from your post - but I don't...

Can I make a macrobutton for my toolbarcommands - to run it on a
tiddler with a lineseperated list?
- or is the script not useable untill I have made wikilinks for each
white-space separated tiddler title?

What is the best method of usig the script? - I don't know how to:
"use an inline script to
iterate over the list of title" ... please educate me..

YS Måns Mårtensson

On 27 Aug., 10:06, Eric Shulman <[email protected]> wrote:
> > I have a list of tiddlernames (with no common tag or fieldname) which
> > I would like to be able to interact with - how do I do that?
> > I have lists with tiddlertitles - and I would like to toggle tags or
> > fieldnames/values on the tiddlers which they refer to.
>
> Let's start with a white-space separated tiddler titles, with [[...]]
> brackets used as needed around titles that contain spaces, stored in a
> tiddler named [[SomeList]].  Then, you can use an inline script to
> iterate over the list of titles and set (or clear) any given 'tagName'
> on those tiddlers, like this:
>
> <script>
>    var titles=store.getTiddlerText("SomeList").readBracketedList();
>    for (var i=0; i<titles.length; i++)
>       store.setTiddlerTag(titles[i],'tagName',true); // true=set,
> false=clear
> </script>
>
> To set the value of a custom fieldname instead of a tag, use:
>       store.setValue(titles[i],'fieldname','...value goes here...');
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
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