Answered
This Illustrator script is weird—why doesn’t the loop reach `i == 2`?
I tried deleting the guides, but it only executed up to the second loop.
Is there something wrong with Illustrator’s scripting architecture? Some scripts that worked two or three years ago seem to have stopped working.
It’s such a mess—no wonder so few people are working on it.
var d=app.activeDocument;
var pl = d.pathItems.length;
//var isg = [];
for (var i = 0; i < d.pathItems.length; i++) {
var p = d.pathItems[i];
if (p.hasOwnProperty('guides')) {
p.remove();
}
//if (p.guides == true) {
// //isg.push(p);
// p.remove();
//}
}
