Copy link to clipboard
Copied
hi,
i tried to pick the object on the rhs and have the action to record my selection as shown in the attached screenshot.
i do not know how to have the action record this ... all the item names are <path>...
any help or comment...
thanks and cheers,
See if this works for you. If it does, you can include it in your action.
app.selection = null;
var items1 = app.activeDocument.pathItems;
var items2 = [];
for (var i = 0; i < items1.length; i++) {
if (items1[i].pathPoints.length == 4 &&
items1[i].closed == true &&
items1[i].stroked == true) {
items2.push(items1[i]);
}
}
for (var i = 0; i < items2.length; i++) {
items2.sort(function(a, b) {
return b.visibleBounds[2] - a.visibleBounds[2];})
}
for
...
Copy link to clipboard
Copied
femkeblanco,
i have tried the script, it works well ...
thanks for your help...
cheers,
Find more inspiration, events, and resources on the new Adobe Community
Explore Now