Last active
August 19, 2019 16:55
-
-
Save AlexeyNik/0e8358fd5cd2bb3b187c00d4e2e0e0ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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