You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a collective specifier to manage multiple Spread objects. This trick only works with a set of page items that belong to the same spread or page. The goal is to manually create a true specifier to handle those objects collectively. Initially you have an Array of page items. The trick is to group these objects temporarily and to resolve group.pageItems.everyItem():
varpage=app.activeDocument.pages[0],// an arbitrary array of page items:myItems=page.rectangles.everyItem().getElements().concat(page.ovals.everyItem().getElements()).concat(page.textFrames.everyItem().getElements());// Groups the items ('myItems' is still an Array)vartempGroup=page.groups.add(myItems);// Converts 'myItems' into a collective specifier:myItems=tempGroup.pageItems.everyItem();// Resolves myItemsmyItems.isValid;// Remove the grouptempGroup.ungroup();// NOW 'myItems' is a nice collective specifier:myItems.fillColor='Black';// etc.
The text was updated successfully, but these errors were encountered:
Creating a collective specifier to manage multiple Spread objects. This trick only works with a set of page items that belong to the same spread or page. The goal is to manually create a true specifier to handle those objects collectively. Initially you have an Array of page items. The trick is to group these objects temporarily and to resolve group.pageItems.everyItem():
The text was updated successfully, but these errors were encountered: