How to iterate over items within a group using JSX?
I have around 160 groups of objects in my AI file.
I would like to perform an action ("Expand stroke, pathfinder Boolean Add and similar) on all object together within one group.
So, I'm writing a script to do just that. I'm stuck quite early in the process.
I can find all 'groups' within my current selection. However, I can't access the separate items within each group. The documentation (Adobe Illustrator CC 2017 Scripting Reference: JavaScript) says that a GroupItem should have GroupItems and PathItems. However, these properties do not exist (undefined). When I create a list of properties, indeed, these are not listed. All I get back from the script is:
clipped typename uRL note layer locked hidden selected position width height geometricBounds visibleBounds controlBounds name uuid blendingMode opacity isIsolated artworkKnockout zOrderPosition absoluteZOrderPosition editable sliced top left visibilityVariable pixelAligned wrapped wrapOffset wrapInside parent
So, where are the items within my group?
For context, a screenshot:

And my piece of Javascript:
for (var i = 0; i < sel.length; i++) {
var a = "";
for (var key in grp) {
a += key + "\n";
}
alert(a);
}
(I have to use 'alert()' because Adobe's ExtendScript Toolkit is impossibly sluggish to work with)
