6 Replies Latest reply on Jul 5, 2016 8:58 AM by Loic.Aigon

    Script to remove graphic is text frame is empty

    jencarter

      I am new to scripting. I need to create a script that will remove a graphic if a text frame is empty.  The text frame is labeled q2 and the graphic is labeled q2Mark.

      Something like:

       

      if (q2.content == "")

      {

           q2Mark.remove();

      }

       

      Can you point me into the right direction?