Copy link to clipboard
Copied
Using Adobe Photoshop cc 2018, is there a way for me to print the name of the file with the Photoshop file itself? How about as a watermark?
The closest way I could figure out how to do this was to Right Click on the tab with the file name and scroll down to Reveal in Explorer. This was from a Window's workstation. I don't know how it would work with a Mac OS X workstation.
I'm hoping there is a better way.
1 Correct answer
Save the below code to a plain text file and add the extension ".jsx". Put it in Photoshop's subfolder Presets\Scripts. Create a text layer, have the layer selected, then run the script. You can also make an action to create the text layer, and place it where you want it, then run the script while you are recording the action.
#target photoshop
try{app.activeDocument.activeLayer.textItem.contents = app.activeDocument.name}
catch(e){}
Explore related tutorials & articles
Copy link to clipboard
Copied
Contact sheets and PDF presentations in Photoshop
This sounds like what you're after
Copy link to clipboard
Copied
Save the below code to a plain text file and add the extension ".jsx". Put it in Photoshop's subfolder Presets\Scripts. Create a text layer, have the layer selected, then run the script. You can also make an action to create the text layer, and place it where you want it, then run the script while you are recording the action.
#target photoshop
try{app.activeDocument.activeLayer.textItem.contents = app.activeDocument.name}
catch(e){}

