3 Replies Latest reply on Jan 5, 2009 2:18 AM by (Johan_Wieland)

    move images to other layer with Javascript

      Hello,

      i'm struggling with translating a applescript to javascript.

      the script is intended to select all images, and move the selection to a new layer.
      that new layer "images" should be not printable and not visible.
      at this moment, i made a javascript wich creates the layer, with the right attributes.

      the applescript code is:
      set IDS to links
      set myLayer to images

      repeat with myCounter from 1 to (count IDS)
      set theFrame to parent of parent of item myCounter of IDS
      try
      set properties of theFrame to {item layer:myLayer}
      end try
      end repeat

      the javascript will be used with Indesing CS3 OSX 10.5

      any help will be appreciated.
      thanks in advance,

      Johan