Need to copy the compound path and paste it to specific art boards
Hi Team,
I am very new to this Adobe Illustrator Java Scripting language.

var doc = app.activeDocument;
var layers = doc.layers;
var desiredLayerName="Layer 1"
var targetLayer = layers.getByName(desiredLayerName);
var placedItem = targetLayer.placedItems;
if(placedItem.typename == "CompoundPathItem") {
console.log("test");
}
// Example: Duplicate and place before a specific artboard (index 0)
var targetArtboard = doc.artboards[1];
I would like to paste this compound path to specific art board as shown above.
Can any one please help me with this query? I need the scripting code for the same.
Thank you

