Photoshop脚本之获得文件夹下所有特定后缀文件
function getAllFiles(folderName,houzhui){ folderName var regthis = new RegExp( '.+\.('+houzhui+')$','i'); var inFolder = new Folder(folderName) var fileList = null if(inFolder != null){ var fileList = inFolder.getFiles(regthis); } return fileList } files = getAllFiles('dirPath','jpg') files2 = getAllFiles('dirPath2','jpg|png')
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/