Quantcast
Channel: Adobe Community : All Content - InDesign Scripting
Viewing all articles
Browse latest Browse all 8771

Release Anchor in Overset TextFrame

$
0
0

Hi All,

 

Request:

 

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

 

Bug:


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.

 

 

Script:

 

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 &&

            t.releaseAnchoredObject();

            }

        }

    }

 

 

Please find the screenshot.

 

 

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

 

Thanks in advance

BEGINNER_X


Viewing all articles
Browse latest Browse all 8771

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>