Photoshop上で開いているPSDドキュメントの名前を取得するPhotoshop スクリプトです。
1 2 3 4 5 6 7 8 9 10 11 12 |
function getDocName() { if(!app.activeDocument){ return ""; } var docName = app.activeDocument.nam CTe; if(name.substring(name.length-4) == ".psd") { docName = name.substring(0, name.length-4); } retrun name; } |
コメントを残す