Mario, Thanks a lot for taking the effort to write this (especially for me? I prefer to beileve that yes :-) )
I'll use it as a base and maybe add some more twists On Wed, Apr 6, 2011 at 8:06 PM, PMario <pmari...@gmail.com> wrote: > To create realistic tiddlers you can do the following. > > Get InlineJavaScriptPlugin [1] > Create some LoremIpsum text [2] > copy as much text as needed into a tiddler named: LoremIpsum > > Copy the following script into a test tiddler > > !!! Turn off AutoSave option > > Change maxCnt to eg 20 and run it several times. > > Save your TW. > And test the behaviour. > > It's quick and dirty but tested :) > -m > > <script label="test"> > var maxCnt = 1; // <- change this > > var tid = store.getTiddler('LoremIpsum'); > var date, random, mId; > > for (var i = 0; i < maxCnt; i +=1) { > date = new Date(); > random = Math.floor(Math.random()*1000); > mId = Crypto.hexSha1Str(date + random); > > name = 'LoremIpsum (' + mId.substr(0,8) + ')'; > > // (title, newTitle, newBody, modifier, modified, tags, fields) > tags = ['tagIt'+i, 'asdf', 'test']; > store.saveTiddler( name, name, tid.text, > tid.modifier, tid.modified, tags, > {} ); > } > </script> . > > [1] http://www.tiddlytools.com/#InlineJavascriptPlugin > [2] http://www.lipsum.com/feed/html > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To post to this group, send email to tiddlywiki@googlegroups.com. > To unsubscribe from this group, send email to > tiddlywiki+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/tiddlywiki?hl=en. > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.