Tinderbox Forum

Sequential numbering of notes

I need to make 190 notes. I want to name the first one “Conf_Pro 1” and the last one “Conf_Pro 190”. I also have an attribute named Conf_Pro_ — it is a number. What’s the most efficient way to make the notes? Thanks.

HI Bryan,

There are multiple ways to do this inside TinderBox. I would demonstrate one using stamp methods

  • Assumption - You’ve an attribute Conf_Pro_ which contains the note number you want
  • You can create a stamp by going to Menu-Inspect Stamp- (Press Plus Button, Give your stamp a name)
  • Use Action as below $Name="Confi_Pro "+$Conf_Pro_
  • You can select all the notes , apply stamp

Please see file attached

Bryan.tbx (73.1 KB)

(I’ve answered wrong question , you want to make 190 notes in 1 go, apologies)


Copy the above text 190-times in a text editor including paragraph (use an editor where you can see line-numbers) .

Copy the entire text in the clipboard (Cmd+C)

Open a new Tinderbox file

Insert the Clipboard into the Tinderbox file (Cmd+V)

Select the inserted note and run menu Note->Explode. Use Option Break at paragraphs.

Switch to Outline View and select all notes “Conf_Pro_”.

Run the following command in Inspector/Stamps:

$Name = $Name.replace(“Pro_”,“Pro_”+SiblingOrder)

Hope this helps.


This is NOT the 1 magic trick answer but will require you to press enter 180 times

  • Create a container in Outline mode ,where you want your notes to live
  • Create an on ADD action (Select Note, Press CMD+1, go to last option with circle in 3 DOTS), select Action

$Conf_Pro_=$Conf_Pro_(prevSibling)+1;$Name="Confi_Pro "+$Conf_Pro_;

You can children note which would be named as your scheme

Nice ! Something new I learned !

That’s going to work. Thanks.

The proposed methods, stamp, explode with action code, are two very effective ways, but they do offer some constraints.

There are some alternatives.

Couple of questions. Have you already made the notes in TBX, or are they in a spreadsheet? Will you ever want to re-order the notes? Change their prefix? Will you ever want the note titles without the Conf. Prof.? Is the numbering primarily for visual semantics or operational purposes?

If you want to add flexibility to your files, e.g. retain the original note name while getting what you asked for, you could create a prototype with a rule, apply the prototype to the notes, and stick the notes in a container. You can also consider creating a $DisplayExpression.

Exactly how you got about doing this will depend on your answers to the first question above, i.e. are the notes in your TBX file yet or not? Basically, what is their current state. Once I understand your starting point, I’d be happy to show you various tricks (do you have sample data or file you can share).

1 Like

If you have to create sets of notes more than once then a simple external script will do the job with one click:

set containerName to "Sequential Notes" -- Change to name of root level container where you want the notes

tell front document of application "Tinderbox 8"
	repeat with i from 1 to 190
		set newNote to make new note at note containerName with properties {name:"Conf_Pro " & i}
	end repeat
end tell

And, getting a little fancier, a short script can also easily create the container and attribute if they don't already exist and populate the attribute with the number in the sequence.
set containerName to "Sequential Notes" -- Change to name of root level container where you want the notes
set attributeName to "Conf_Pro"

tell front document of application "Tinderbox 8"
	if not (exists note containerName) then
		make new note with properties {name:containerName}
	end if
	if not (exists attribute attributeName) then
		set newAttribute to make new attribute with properties {name:attributeName, type:"number"}
	end if
	repeat with i from 1 to 190
		set newNote to make new note at note containerName with properties {name:"Conf_Pro " & i}
		set value of attribute attributeName of newNote to i
	end repeat
end tell


Step 1: Copy-paste one of the scripts into Script Editor (in Applications > Utilities).

Step 2: With a Tinderbox document open, click the run button in Script Editor.

Step 3: No step three.

(If “nothing happens” make sure Script Editor is listed and checked at System Preferences > Security & Privacy > Privacy > Accessibility.)

1 Like

This is great. At first pass, I did not see there were two scripts here. Script 1: create the 190 notes; Script 2: create notes and name them with the attributes. Works great!!!

Another approach:

  1. Make a sequential attribute $Seq
  2. Make a bunch of notes
  3. Set the $DisplayExpression of these notes to $Name+$Seq

For those curious about this, a sequential attribute is an attribute set to data type “number” and the sequential check boxed checked.