源码开放的PS批量文档全自动输出为TIF格式。app.activeDocument=app.documents[0] var sstr = app.documents[0].name; var Dot = sstr .lastIndexOf('.'); var str = sstr .substring(0,Dot); str = str.replace(/\s*/g,"");