var ls = []; var tf = activeDocument.textFrames; for(var i = 0; i < tf.length; i++){ var tr = tf[i].story.textRange; for(var j=0; j < tr.contents.length; j++){ var fn = tr.characters[j].textFont.name; ls[fn] = true; } }
var res = "フォント一覧"; for(var i in ls){res += "\n" + i;} alert(res);