Hi TwWizards
Can you somehow use the selectmacro to replace the prompt in a script?
I want users to be able to choose amongst existing tiddlernames from a
list - The choice should be placed in the script for further
processing.
I have 2 practical uses for this:
1) Set username from a list of users
"<<setUserName force promt for username with SelectUsernameList>>"
2) Choose tiddlertitle from a list of tiddlers and insert the
titlevalue in a script:
Prompt SelectTiddlerTitleList -
<script label="TagList" title="Tag tiddlers from a bracketed list of
tiddlertitles">
**Prompt(SelectTiddlerTitleList");**
if (!tid) return; /* cancelled by user */
var txt=store.getTiddlerText(tid);
if (!txt) { alert(tid+" not found"); return; }
var titles=txt.readBracketedList();
for (var i=0; i<titles.length; i++) store.setTiddlerTag(titles
[i],true,'TagName');
</script>
Is this possible already - does it require a modification of existing
plugins - or isn't it possible at all?
YS 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
-~----------~----~----~----~------~----~------~--~---