How to insert a project before a specific project?

Hi @Jim,

I don’t use a ‘/’ at the beginning of my item paths, and I think the trailing colon at the end of the project name needs to be included.

I would try this code (untested):

let links = editor.outline.evaluateItemPath('project Links:')[0]
links.insertChildrenBefore([project], root.firstChild)

And, not sure if it helps, but you might want to take a look at my Populate Daily Habits script.

1 Like