Skip to content

Instantly share code, notes, and snippets.

@AlexeyNik
Last active August 19, 2019 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexeyNik/0e8358fd5cd2bb3b187c00d4e2e0e0ad to your computer and use it in GitHub Desktop.
Save AlexeyNik/0e8358fd5cd2bb3b187c00d4e2e0e0ad to your computer and use it in GitHub Desktop.
#target "Indesign"
main();
function main(){
if (app.activeDocument.selection.length){
var mySel = app.activeDocument.selection;
var l = mySel.length;
for (var i = 0; i < l; i++) {
var tf = mySel[i];
tf.paragraphs.everyItem().clearOverrides(OverrideType.ALL); // обычные тексты
if (tf.tables.length) { tf.tables.everyItem().cells.everyItem().texts[0].clearOverrides(OverrideType.ALL) } // таблицы
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment