Question
Duplicate Part of a Compound Path Question
Hello All,
Is there a way Script wise that I can only duplicate the outermost path of a Compound Path?
My first attempt was to duplicate the whole compound path which worked... if I selected the Script manually... and did not work when I used the Action Panel to call the Script.
var objectHeight = selectedObject.height;
var objectWidth = selectedObject.width;
var duplicatedObject = selectedObject.duplicate();
duplicatedObject.left = selectedObject.left - (objectWidth * 2);
app.activeDocument.selection = null;
duplicatedObject.selected = true;
app.executeMenuCommand("noCompoundPath");
app.executeMenuCommand("ungroup");
