2 Replies Latest reply: Mar 26, 2012 9:52 AM by matt.white RSS

    Script to group all items on a layer on the active page



      I am struggling to get the correct syntax for this bit of my script.

      I need to group all the items on a slug layer of my indesign document, but only on the active page.


      This is as far as I have got:


      tell application "Adobe InDesign CS5"



                tell document 1

                          set myItems to the active page's page items whose item layer's name is "Slug" --this line does not work

        select myItems

                          set myselection to selection

        make group with properties {group items:myselection}

                end tell


      end tell


      I have tried many variations of this, but have not made anthing that works yet.

      Any help would be much appriciated.