Thank you for your replies.
The code you suggested gives Error 4: Unterminated string constant.
I tried removing inverted commas previously, but get Error 2: Watermark1600 is undefined.
Not sure whether it makes any difference but I created the script in Text Edit and saved as a .jsx, and script is located in Applications/Adobe Photoshop CC 2014/Presets/Scripts