Skip to content

Instantly share code, notes, and snippets.

@arjunmurali1993
arjunmurali1993 / Photoshop Script to Save With and Without Watermark.jsx
Created March 23, 2019 05:39
This Photoshop Script saves two copies of the image - one with the Watermark and one without the watermark. To ensure that it works properly, the Watermark Layer must be on top of the Image Layer. Very useful for Photographers.
#target photoshop;
if (app.documents.length > 0) {
var thedoc = app.activeDocument;
var docName = thedoc.name;
if (docName.indexOf(".") != -1) {
var basename = docName.match(/(.*)\.[^\.]+$/)[1];
} else {
var basename = docName;
}