Caption-Filename

Caption-Filename is a Photoshop script/action for creating captions like shown on the right. Rather than manually entering these titles, I found it easier to name the files in the same way and let a script create duplicates with the caption based on the filename.

Caption-Filename is free of charge.

Download and installing

To download Caption-Filename, simply click on the download button. This will download a file install-caption-filename.jsx.

To install Caption-Filename, double-click on install-caption-filename.jsx. This should launch Photoshop and ask if you want to install an action for Caption-Filename in the actions panel. (If you don't see the Action palette, you will find it under Window > Actions.)

If double-clicking doesn't work, you can also install this script by doing File > Scripts > Browse... and choosing install-caption-filename.jsx.

Using Caption-Filename

Open a document and run the "Caption filename" action. It should create a caption with the same text as the filename, minus the file suffix of course. A big point of this script is that you can run it in batch on a whole bunch of files that you have named according to their intended titles: using the Image Processor: launch the Image Processor from Bridge (Tools > Photoshop > Image Processor), check "Run action" and specify the "Caption-Filename" action set and the "Caption filename" action. The output files will appear in the "JPEG" subfolder.

Customising Caption-Filename

There are a few parameters at the top of the caption-filename.jsx script that you can change:

Vertical centering

You may notice that the caption text is not (always) perfectly vertically centered. The reason for this is twofold:

  1. It is not possible for the script to obtain the coordinate for the baseline of a text layer.
  2. Because the caption text may (or may not) have descenders, or umlauts, it is not possible to anticipate the height of the text.
The script ensures that all text, regardless of descenders and umlauts, have a consistent baseline.

About

Caption-Filename is ©Kjell Post. Feel free to contact me if you are in need of Photoshop scripting.