Maybe someone needs a simple script for creating text watermarks in Photoshop. Takes into account the resolution of the picture and its color.
Periodically, I put "© 3fonov" in my photos. Each time, doing it again is time consuming and I wrote a set of actions in Photoshop to automate this process. As it turned out all is not so simple.
First , it was necessary to change the color of the inscription: it sometimes merged with the background. But this is half the trouble. It was much harder to fight with a pin. In actions it can be set only through the items.
Because of this, images with different resolutions turned out different in absolute (in pixels) size of the inscription:


With the help of actions this problem was practically not solved. Therefore, I had the courage to write two simple scripts for creating watermarks. Only for their needs.
')
In the process of work, they create a free-text layer, oriented upwards along the right edge. The color is selected based on the average illumination of the area: if the area is dark, then the inscription is light and vice versa. The size of the label is set in pixels. You can also specify a headset. To do this, find it in the C: \ Windows \ Fonts \ folder and take the name from there:

The scripts are different in that the first one simply adds the text to the open document, and the second one changes it to the desired size and saves it in the Jpeg format with the “w_” prefix in the specified folder. Compression quality is specified from 0 to 12. The more - the better. Although there is practically no difference between 12 and 11.
All listed settings are specified at the very beginning of the script file:

If you place the script files in the c: \ Program Files \ Adobe \ Adobe Photoshop CS3 \ Presets \ Scripts \ folder, they will be loaded automatically when you start Photoshop and will be available from the File \ Scripts menu:

Otherwise, they must be opened using the “Browse ...” command in the same menu.
And here are the scripts themselves:
createwatermark.js - create a simple label at the bottom right.
ResizeCreateWatermarkAndSaveAsJpg.js - resizing, creating labels and saving in Jpeg format.
The result of the script:

UPD: Checked in the full version of CS3.