Script to Group all items on a page
Hello,
I'm looking for a script to be able to create a group of all items on page and to do it for all page in the document. I found a script here https://community.adobe.com/t5/indesign-discussions/group-all-items-on-page-in-a-document/td-p/8710941 but on line :
if (spreads.pageItems.length > 1) {
I get an "undefined is not an object"
Configuration :
Windows 11
Indesign 2022 / 17.2.1 X64
Thanks
