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.
Thanks in advance
BEGINNER_X