Batch add note script?

I’m trying to add batch add notes to OmniOutliner.

Pretty much exactly what chrisbirdsall did here but for Outliner instead of OF.

I’ve tried to edit his script to work with Outliner, but I’m getting errors.

I should add that I’m trying to insert citations from where I pulled the material so that after I merge it with another outline I can find the source, just in case anyone is using a better method to do the same thing.

As always, thanks in advance for any direction.