How to remove all isolated path points

Hi,

I try to remove all isolated path points in Illustrator, but I don’t know how to do this. Has anybody done this before?

In Applescript I have to do next actions in Illustrator: select>objects>anchor points and then do delete.

I hope to get some reactions

Eric

by isolated point do you mean stray points ?

mm

Hello mcgrailm,

Thank you for your reaction. Yes, that’s what I meant. I didn’t know the specific term. How to remove all stray point in an Illustrator document?

Eric

This is a solution. I found it in this forum:

tell application "Illustrator CS" to activate
deleteStrayPoints(1)

on deleteStrayPoints(doc)
   tell application "Illustrator CS"
       if class of doc is integer or class of doc is string then set doc to document doc
       tell doc
           try
               set strayPts to (every path item whose width is 0 and height is 0)
               set emptyText to every text frame whose contents is "" or contents is " " or contents is (tab as text) or contents is (return as text)
               set deleteItems to strayPts & emptyText
               delete deleteItems
           end try
       end tell
   end tell
end deleteStrayPoints

Eric

so does that work for you ?

mm

Yes, it works, but searching for all these path items takes a lot of time.

Eric