_split _point macro with preselected multiple objects

Hello.
I’m trying to create an alias/macro that would allow me split curves at a point.
_split _p works well until multiple objects are preselected. Preselected multiple objects reversing the flow, now they become the cutting objects for whatever reason and not the objects being splitted:

Command: _Split
Select cutting objects: _p
Select cutting objects: '_Planar
Planar drawing is on
Select cutting objects

resulting my macro changing _planar settings instead.

Is there a way make a simple macro/alias that would handle consistently single/multiple/none preselected objects?

Thank you.

Instead of _P you should use _Point

Working on multiple object isn’t possibile but you can use _Repeat at the beginning of your macro to restart it once the split is done.

The macro could be:
_Repeat
_Split
_Point

Unfortunately I’m not able to make the _Point option be remembered

Thanks, good catch on the “_p”
It’s unfortunate…there are quite a few commands that changes flow depending on selection, making it impossible create a simple macro…

Luckly there is scripting to the rescue:
splitPoint.py (22.9 KB)

Not only it allows add split points to multiple objects, but also undo/unpick them within the command itself.