Need Document Fonts in .TXT format
Hi All,
I am trying a script which is in "InDesignCS3_ScriptingGuide_JS" related to font list.
My requirement:
How can we get documents font list in .txt format.
Trying Code is below:
//To display font name (working fine)
var myDocument = app.activeDocument
var myDocumentFontNames = myDocument.fonts.everyItem().getElements();
for(var i = 0; i<myDocumentFontNames.length; i++){
alert(myDocumentFontNames.name);
}
//i think here is doubt
var myFileName = "~/Desktop/Test.txt";
myDocumentFontNames.exportFile(ExportFormat.taggedText, File(myFileName));
Can anyone give solution for me if you willing.
Thanks in advance
BEGINNER
