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
var textFrame = activeDocument.selection[0]; | |
if(textFrame && textFrame.characters && textFrame.characters.length > 0){ | |
var textContent = textFrame.contents; | |
var fonts = app.textFonts; | |
var len = fonts.length; | |
var width = 270; | |
var height = 24; |
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
var djs = {};//Default setting JavaScript | |
djs.w = window; | |
djs.d = djs.w.document; | |
//IEでconsole未定義エラーを出さないようにする。 | |
(function(win){ | |
if(!win.console){ | |
win.console = {}; | |
} |