Answered
moveToBeginning() does move nothing but half of item .....WTF is this;
hello
im trying to move pathItems that each has a common appearence into the layer had made on time start beggning script
im using moveToBeginning()
but it moves item but nothing half of items
i dont know why happen such a thing....
finally , just i want to do is moving all particlar pathitems to another layer
thank you for anything help

↑Script RESULT
↓Test SCRIPT
var parentLay = app.activeDocument.layers;
var Layer = app.activeDocument.layers.add();
function DoSomeThing() {
for (var j = 0; j < parentLay[1].pageItems.length; j++) {
//↓moveToBeginning move nothing but half of pageitem ...why?
parentLay[1].pageItems[j].moveToBeginning(Layer);
}
};
DoSomeThing();
