Install the following script with these directions, then run it and adjust the parameter 100
as needed:
#target illustrator
var doc = app.activeDocument;
var objs = doc.pageItems;
traverseSceneObjects(objs, selectByCurveLengthFactory(100));
redraw();
function selectByCurveLengthFactory( length){
return function(item) {
if ( item.length <= length)
{
item.selected = true;
}
}
}
function traverseSceneObjects(pageItems, func){
for (var iter=0 ; iter<pageItems.length; iter++ ){
var item = pageItems[iter];
var typename = item.typename;
// apply action or get the subitems of object
if (typename === "PathItem"){
func(item);
} else if (typename === "GroupItem") {
traverseSceneObjects( item.pageItems, func );
} else if (typename === "CompoundPathItem" ) {
traverseSceneObjects( item.pathItems, func );
}
}
}