2 Replies Latest reply on Nov 10, 2009 1:39 PM by sstanleyau

    group two items in Indesign CS4? - applescript, sample script attached not working

    Dawid_Ruzicka

      hello,

       

      does anyone know why this script below does not work ? I am trying to duplicate frame with image and then group them together, but cant figure out how

       

      any help is very appreciated . Thank you

       

      tell application "Adobe InDesign CS4"

           tell active document
           set mySelection to item 1 of selection

           duplicate mySelection

           set mySelection2 to item 1 of selection

                tell mySelection2
                bring to front
                end tell

                make group with properties {group items:{mySelection2, mySelection}}

           end tell

      end tell