Thanks Mark

It's a brilliant addition to the backpack of great tools available for
TiddlyWiki.
Eric's SplitTiddler transclusion and your Compile Story script are
good companions...
I often use spreadsheets and other programs to process similar tasks
with tiddlerdata-
with these tools I can stay with TiddlyWiki all the way - I love it! -
Thanks.

Maybe you could even add some of the functionalties from Eric's
SplitTiddler transclusion?
Choose tiddlers to include by title, tags etc - option for setting
linebreaks interval between compiled tiddlers... get a list of
tiddlers to compilation to rearrange order ... that said - I think
your script is doing a great job as it is.

Regards Måns Mårtensson

On 7 Jan., 19:51, "Mark S." <[email protected]> wrote:
> Here, I put it at
>
>  http://marksbasement.tiddlyspot.com
>
> Good luck!
> Mark
>
> On Jan 7, 10:00 am, Måns <[email protected]> wrote:
>
>
>
> > Hi Mark
>
> > Now I get it :-)
> > Great idea (and great coding I suppose..)- and thanks for sharing -
> > However as usual I'm having problems when guessing where the
> > linebreaks should be.
> > I'm getting this error: SyntaxError: missing ) after argument list
> > Here's the script:http://journalermm.tiddlyspot.com/#Compile
>
> > Regards Måns Mårtensson
>
> > On 7 Jan., 18:04, "Mark S." <[email protected]> wrote:
>
> > > Well, in case anyone else sees a use for this, here it is. Done as a
> > > inline javascript that needs to be transcluded from a side menu. Like
> > > <<tiddler CompileStory>>. BECAUSE -- you don't want to be compiling
> > > and possibly deleting the tiddler that's running the script! Test
> > > before using, etc.
>
> > > This takes all the tiddlers in the current story, and packs them into
> > > the top tiddler in the story. There may be other ways that would make
> > > more sense, but that's the way it works at this point. All the other
> > > tiddlers in the story are deleted.
>
> > > The goal was that, if you have collected a half dozen snippets with
> > > TiddlySnip, that you can quickly pack them into one tiddler. That was
> > > the goal, but I've figured out an entirely different approach to
> > > collecting web info (Using NoteTab pasteboard mode plus "Its all
> > > text").
>
> > > Mark
>
> > > <script label="Compile">
> > > //{{{
> > > // This script should not be run from a tiddler that is
> > > // part of the story!
> > >     var first = true;
> > >     var summaryTitle = "AccidentalTitle" ; // Need more scripting to
> > > protect against empty story
> > >     var who, when, out,tags,fields, summaryElement ;
> > >     story.forEachTiddler(function(title,ele) {
> > >     //tid = story.findContainingTiddler(tid) ;
> > >       tid = store.getTiddler(title) ;
> > >       if(first) {
> > >         //var tid=store.getTiddler(t);
> > >         summaryTitle = title ;
> > >         summaryElement = ele ;
> > >         var who=tid?tid.modifier:config.options.txtUserName;
> > >         var when=tid?tid.modified:new Date();
> > >         out=tid?tid.text:'' ;
> > >         var tags=tid?tid.tags:[];
> > >         var fields=tid?tid.fields:{};
>
> > >         first = false ;
> > >       } else {
> > >         out+=tid.text ;
> > >         store.removeTiddler(title) ;
> > > story.closeTiddler(title) ;
> > >       }
> > >     /*-- FOR LATER get new tags and add to existing tags (if any) */
> > >     //var newtags=curTiddler.tagsfield.value.readBracketedList();
> > >     //for (var i=0; i<newtags.length; i++) tags.pushUnique(newtags
> > > [i]);
> > >     } ) ; // foreach
> > >     /* write and show tiddler */
> > >     store.saveTiddler(summaryTitle,summaryTitle,out, who, when, tags,
> > > fields);
> > >     story.refreshAllTiddlers(true) ;
> > >     //story.displayTiddler(story.findContainingTiddler
> > > (summaryElement),summaryTitle);
>
> > > //}}}
> > > </script>
>
> > > On Jan 6, 11:01 am, "Mark S." <[email protected]> wrote:
>
> > > > I could probably write a script to do this, but just in case -- is
> > > > there a plugin or macro that would compile the current story ( or a
> > > > given set of tiddlers) into one tiddler?
>
> > > > Thanks!
> > > > Mark
-- 
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