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

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support