yes, there is a moveToEnd() method as well, both still work but have been deprecated and replaced by the newer move() method.
newItem.move( newGroup , ElementPlacement.PLACEATBEGINNING);
ic. thanks you.
the moveToEnd() didn't do anything but the move() method worked. they should take it our of their example. it confused me for half a day
… the moveToEnd() didn't do anything …
Try this way:
// e.g. at first create a new document with only one object var newGroup = app.activeDocument.groupItems.add(); app.activeDocument.layers.pathItems.moveToEnd(newGroup);
yeah, they should but they probably won't...it's been there since Illustrator version 10 when it was a valid method, they may keep it for ever for sentimental reasons. CC documentation was recently out and still reads "CS5" in some pages.