Hello Everyone,
Since the “InDesign Add-ons (Scripts, Scripting, and Plug-ins)” is closed, I’m posting a script related question here.
I was looking for a JavaScript to Un-Anchor all the Anchored objects in a document.
I tried the “ReleaseAnyAnchor.jsx”, but that requires me to select an Inline Anchor object first. So selecting each and every anchor item and running the script is a tedious task.
https://indesignsecrets.com/releasing-inlines.php
I checked this as well, but it doesn’t action anything:
https://community.adobe.com/t5/indesign/release-all-anchored-objects-at-once/td-p/3807944?page=1
var a = app.activeDocument.allPageItems, t;
while( t = a.pop() )
{
t.isValid &&
t.hasOwnProperty('anchoredObjectSettings') &&
(t.parent instanceof Character) &&
(t=t.anchoredObjectSettings).isValid &&
t.releaseAnchoredObject();
}
I also took a dive in to this, but it is not at all what is expected.
https://gist.github.com/mhjb/5f78dee507754f0871891efe2c70d5ba
I also tried “UnAnchor_TextFramesOnly_V3.jsx” but it only Un-Anchors the text frames.
Since I’m on CC 2019, I think there might be an updated version of “ReleaseAnyAnchor.jsx”. Can anyone help me on this, a simple script to Release all the anchored objects within a document.
Thanks,
Masood