1 Reply Latest reply on May 31, 2012 7:12 AM by John Hawkinson

    check compatible code

    designmon79 Level 1

      Hi All,


      Please see js code below that is working fine in InDesign CS4. But not working in CS5.5.


      Can anyone please see and let me know which object/properties has been changed in CS5.5.



      _________JS CODE________


           while (!(element instanceof Page || element instanceof Application))

                if (element instanceof Character)

                     element = element.parentTextFrames[0].parent;


                     element = element.parent;

           if (element instanceof Page)

                return element;

           return null;





      Thanks in advance,