2 Replies Latest reply on Mar 26, 2013 5:10 AM by BEGINNER_X

    Release Anchor in Overset TextFrame

    BEGINNER_X Level 3

      Hi All,




      I want to release hide anchor marker  in the text frame.  Please refer screenshot.



      I developed script with the help of forum. But it not able to release anchor in overset text frame.


      If anchor marker is hided in the text frame I not able to release the anchor marker with the help of below script.


      Could anyone help me for my request.





      var myPgItems = app.activeDocument.allPageItems, t;


      var myTextFrames = app.activeDocument.textFrames.everyItem().getElements()


      for(i=0; i<myTextFrames.length; i++)


          var myTF = myTextFrames[i]


          if(myTF.overflows == true)


              while( t = myPgItems.pop() )


                  t.isValid &&

                  t.hasOwnProperty('anchoredObjectSettings') &&

                  (t.parent instanceof Character) &&

                  (t=t.anchoredObjectSettings).isValid &&







      Please find the screenshot.



      Screen Shot 2013-03-26 at 12.44.04 PM.png


      Thanks in advance