Ungroup selected items and delete them
hello!
i have code removes tags (if there tags) objects , deletes them.
the problem if tagged objects grouped. or grouped objects in group.
i need ungroup selected objects , untagging , deleting them.
how can this?
my current code:
for (var isel = app.activedocument.selection.length-1; isel >=0 ; isel--){ var currentselection = app.selection[isel]; if (currentselection.associatedxmlelement != null) { currentselection.associatedxmlelement.untag(); currentselection.remove(); } else { currentselection.remove(); } }
bump!
More discussions in InDesign Scripting
adobe
Comments
Post a Comment