Getting all points of a curve using a script

 From:  MajorGrubert (CARLOSFERREIRAPINTO)
6257.35 
Hi Max,

Thanks for the script. It will be a time saver for me.

Any chance of the new points made a new curve, above the reference curve and with an option (tick box) of deleting the reference curve?

Or placing the new points on the same curve and deleting the old ones.

Don't now if its possible, easy to do, or usefull for anybody else but me. Have a similar script on Illustrator.

The option 'skip straight lines' is fantastic.

Carlos