??? Simple Script needed for Illustrator ???
Greetings.
I was wondering if anyone knew of a known script out there that for Illustrator that could automate this process (please see attached file).
Much appreciated!
![]()

Greetings.
I was wondering if anyone knew of a known script out there that for Illustrator that could automate this process (please see attached file).
Much appreciated!
![]()

as long as all the boxes are aligned then this should do the trick.
// number Items
var doc = app.activeDocument;
var items = doc.pathItems;
var loc = [];
for(var i = 0; i < items.length; i++){
var item = items;
loc.push([item.position[0], item.position[1], item]);
}
loc.sort(function (a, b) {
if (a[1] > b[1]){
return -1;
}else if (a[1] < b[1]){
return 1;
}else{
if (a[0] < b[0]){
return -1;
}else if (a[0] > b[0]){
return 1;
}
return 0;
}
});
for(i = 0; i < loc.length; i++){
var txt = doc.textFrames.add();
txt.contents = i+1;
//alert(loc[1][2].left);
txt.position = [loc[2].left+10,loc[2].top - 10];
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.