can't catch bug.
var mDoc = app.activeDocument; var mSel = app.selection; var mGroup = mDoc.groups.add(mSel); app.cut(); //var mSel1 = app.selection; //var mSel2 = app.selection; //var mGroup = mDoc.groups.add([mSel1,mSel2]);
after cutting my selection and pasting it i don't see dotted frame around my objects (as in image 2) and still have to groum it manually. Why? (see attaches). But if no cutting - dotted frame does present.
Notice app.selection.length after grouping - it is still == 2.
You are able to select a few group members, cut them and paste them as separate items.
But if you select a group - you cut a group.
mGroup.select() before app.cut()
notice also a difference: