Skip to content

Instantly share code, notes, and snippets.

@kanemu
Created November 9, 2011 00:50
Show Gist options
  • Save kanemu/1349910 to your computer and use it in GitHub Desktop.
Save kanemu/1349910 to your computer and use it in GitHub Desktop.
[indesign]ドキュメントのxmlタグを全部解除する。
var doc=app.activeDocument;
var items = doc.allPageItems;
for(var i=items.length-1;i>=0;i--){
var item = items[i];
if(item.associatedXMLElement){
items[i].associatedXMLElement.untag();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment