A javascript for showing the name of used font.
Hi,
I need to show the name of font which is used in the active document. I am new in scripting. I don't get any clue for this.
doc = activeDocument;
texts = doc.textFrames;
count = texts.length;
for (var i = 0; i < count; i++ ) {
textRef = texts;
textRef.selected = true
var f=textRef.Font ;
}
alert(f);
Every-time, I am getting "undefined". Can Anyone give me what is wrong in this code? Thanks in advance.
