2 Replies Latest reply on Jun 23, 2017 11:55 AM by ohmnath

    check whether the selected object present in back side or front side

    sangeethak65390815 Level 1

      Hi,

            I'm using indesign cs6. I want to check whether the selected object present in back side or front side using indesign scripting.

      The following code I tried,

       

      var mydoc=app.activeDocument;

      var myFrame=mydoc.textFrames[0];

      if(myFrame.bringForward()==true)

      {

          alert(true)

      }

      else

      {

          alert(false)

      }

       

      This is the code i'm trying it will be return either false value or undefined.

       

      example Image

       

      new1.png

      this is bring front Image

       

      new2.png

      this is bring forward Imge

       

      Thanks,