In the attached experiment, I have an adornment at the root. This adornment has an OnAdd action: createAdornment("Incoming");. If I create a note on the adornment, I expect it to have an adornment inside it called “Incoming”. And it does, but it actually has two of them! If I drill down into the new note container and drag the auto-created “Incoming” adornment a bit, it reveals another “Incoming” adornment behind it. This is a surprise.
Bug or user confusion?
TB Version 11.0.1 (b737)
macOS Sequoia 15.6.1 (24G90)
Yup, double-clicking or control-clicking (and selecting “Create Note”) on the Test adornment creates a note with two Incoming adornments inside. That’s what I meant. Interesting that dragging a note onto the Test adornment does not have the issue.
In the mean time, I can achieve the desired effect by creating a “New Project” prototype of a container note that contains an “Incoming” adornment and setting the OnAdd of my root adornment to $Prototype="New Project". Now, new notes created on the adornment will have one and only one “Incoming” adornment inside.