5 Replies Latest reply on Jul 14, 2014 2:15 AM by Jump_Over

    Check the first object within text frame if another text frame or normal text with JaveScript

    MohamedYousif

      Hi all,

      I need to write script that will check the first object within my selected text frame and tell me if that object is textFrame Object or text Object.

      For Example the next image shows that the first object in the main text frame is another text frame contains Table, in that case the script should return TRUE

      1.png

      in the next case the main text frame contains normal text in beginning of the frame, in that case the script should return FALSE

      2.png

      So how can i check for this cases,

       

      Any help i will be grateful,

       

      Thanks