Tinderbox Forum

Automated way to create note titles from note text body?

Is there a way to automatically extract a few words from the top of a note’s text (in the body) to create note titles? Ideally, I’m seeking to do this in a batch function, i.e., for bunch of imported notes that lack titles.

Thank you.

If you want 3 words:


This might be a stamp, or perhaps an agent action.


WOHA !!!

Thanks for this . I was about to ask the same question.


Coming in Tinderbox 9: Tinderbox will have smart functions to extract the first sentence of a string, even in the presence of confusing punctuation like

Mr. J. C. Martin paid for the ticket.


maybe we can see this demo on one of the meet-ups !

Thank you so much for this! It’s incredibly helpful. I might switch the number of word to five or so. And yes, upcoming features like “smart functions to extract the first sentence of a string” sound amazing! Cannot wait…

Thank you again. This is great…

1 Like

This is a slightly different question than the one I started with at the top of my query, but is in a similar vein… (Happy to post this in a separate post if that’s advisable).

Normally, I import notes with or without titles – which is why I originally asked about an automated way to create note titles from note text body.

But I’ve recently been importing notes that haven’t been separating the note title from text body, so everything just appears as one big text blob.

So, I’m wondering… Is there a way to do the following for a batch of notes:

  1. Create a stamp that would include your suggested command $Name=$Text.words(3) to create the notes’ titles, and then

  2. …move the notes’ text (currently appearing as the titles) into the notes’ text body.

Please let me know if I can further clarify what I’m seeking if I’m not completely clear. Thank you again for your help!

I’d do it in the other order. First:


This copies the current name to the text. Then:

1 Like

Great. Thank you!

It works beautifully… One tiny thing: after applying a stamp, the title still occupies a mass of space where the text used to be. Any way of removing that?

I’m excited to use this in Tinderbox 9, and its smart functions to extract the first sentence of a string! Seems like that would create even better titles…

Thanks so much again!

In outline view, you might need to click on the active tab, asking Tinderbox to lay out the outline afresh. That’s an expensive operation, so we don’t want to require it for every action.


Thank you so much. This is great; works perfectly… Really appreciate your help w/ this.