How can I get this script 'to connect all the corner points of a path by straight lines' working?
I downloaded a script called 'All Points' from here but it is not working: http://www.wundes.com/JS4AI/
To explain further: if I have a square, I can just connect the diagonally opposite points to create diagonal lines. This gets very complex when dealing with shapes with a large number of points as exemplified here: http://js4ai.blogspot.in/2009/05/spoze-you-have-shape-like-this-and-you.html
The script shows an error, after I select a polygon and run it:
Error 8705: Target layer cannot be modified
var shapeGroup = app.activeDocument.groupItems.add();
PS: The script also finds a mention in the answer to this question.