Although there is a function in Illustrator to select stray points and delete or clean up stray points in paths, I want to find a way to make it in JavaScript.
It seems that no specific details mentioned in JavaScript Reference of Illustrator, I think it is related to "pathPoints.length == 1" and "textFrame".contents==0, or something esle. But I am not so sure.
Could anyone give me a script to clean up all stray points in a document?
p.s. what's the differences between "select stray points =>delete" and "path =>clean up stray points" in illustrator, I heard that one could delete brushes or something...
Thank you in advance,