[tw] Re: automatic editing of tiddlers

2012-03-02 Thread skye riquelme
Opa I was not aware that the return ends the scrip..now you point it out it seems so obvious !!! text.replace...I thought you were refering to a TW function and not the basic javascript guess I should go back to bed and try again tomorrowwhen my brain is fully engaged... thanks

[tw] Re: automatic editing of tiddlers

2012-03-02 Thread Eric Shulman
> var newtext=fullref+"|\n|Autor||\n|Editora||\n|Fonte|www|\n|Tipo|pdf|\n > \n!!Comentarios\n"; > return newtext; ^^^ WHY?!? (this *ends* the script *without saving the tiddler*... *none* of the code that follows it will *ever* be invoked) >       store.saveTiddler( tids[t].title, tids

[tw] Re: automatic editing of tiddlers

2012-03-02 Thread skye riquelme
Hi Again Thanks Eric. so now I have var ref="???"; var tids=store.getMatchingTiddlers(ref); for (var t=0; t>"); var fullref=firstreplace.slic

[tw] Re: automatic editing of tiddlers

2012-03-01 Thread Eric Shulman
On Feb 29, 8:32 pm, skye riquelme wrote: > I am wanting to change the text in a large numer of tiddlersthey > follow a simple pattern and the editing of the text is quite straight > forward. But I cant get the script to make the changes to the original > tidller If you are just doing

[tw] Re: automatic editing of tiddlers

2012-03-01 Thread HansBKK
Open up the HTML file with your favorite code editor, or treat it as plaintext with your favorite regexp text-processing tools. On Thursday, March 1, 2012 11:32:17 AM UTC+7, skye riquelme wrote: > > Hi Again > > I am wanting to change the text in a large numer of tiddlersthey > follow a sim