有沒有一種(更好的)方式來確定選擇是否存在於Photoshop中的圖層中,而無需在selection.bounds上使用try/catch? try
{
var sel = app.activeDocument.selection.bounds;
}
catch(e)
{
var sel = undefined;
alert("No selection");
我目前正在嘗試添加到此Photoshop腳本(該腳本當前從文件夾中抓取大量圖像文件並替換智能對象的內容並保存單個jpgs): #target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var theName= myDocument.name.match(/(.*)\