#target Photoshop var docRef = app.activeDocument; var activeLayer = docRef.activeLayer; if (activeLayer.kind == "LayerKind.TEXT") { var textLayerFont = activeLayer.textItem.font; alert(app.fonts[textLayerFont].family + "," + app.fonts[textLayerFont].style); } else { alert("テキストレイヤーを選択してください。") }