Please any one help me!, How to remove the xml Structured Anchored Frame without disturbing the XML Structure.
Manually If I'm removing the XML Structured Anchored Frame, the XML Structured is gone.
I tried so many ways. If I am removing manually in Grouped Frame, then this problem is not happens.
I mean, Create 2 separate frames Move any xml structured contents to that frames. Group that 2 frames and make it anchored.
Now you can remove that anchored, this xml Structure is not disturbing (I mean not removed).
If I did the same in above method for Single Text Frame, this xml Structure is gone.
Kindly any one person resolve this problem, Thanks in advance!!!
Thanks & Regards
Hm – if you can do it with a Group object, why don't you wrap around a group object?
With ExtendScript it's quite possible to create Groups with only one single object.
If we have a text frame selected, you could add a "helper" rectangle to the spread.
Group the text frame and the rectangle, then remove the rectangle from the group.
Now you have a Group with a single text frame.
var myTextFrame = app.selection; var myHelperRectangle = app.documents.layoutWindows.activeSpread.rectangles.add(); var myGroup = app.documents.layoutWindows.activeSpread.groups.add([myTextFrame,myHelperRectangle]); myGroup.rectangles.remove(); app.documents.select(myGroup);