Created
August 17, 2018 12:54
-
-
Save UskeS/b78eeb1ec44d62784ebcd8347b2be43a to your computer and use it in GitHub Desktop.
[InDesign] 重複して末尾が -\d な名前の合成フォントをまとめて削除
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
!function() { | |
var doc = app.activeDocument; | |
var compFonts = doc.compositeFonts; | |
for (var i=compFonts.length-1; i>0; i--) { | |
if (/\-\d+$/.test(compFonts[i].name)) { | |
compFonts[i].remove(); | |
} | |
} | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment