Actions for name file
Copy link to clipboard
Copied
Good morning and sorry my english.
I need your help. I would need to create an action on Photoshop that writes me directly to the file that I have opened at that moment the very name of the file. Let me explain: I open a photo called "untitled.jpg", by pressing on this action I would like the text file with "untitled.jpg" to appear in the bottom right. It's possible?
Thanks so much for your support.
Explore related tutorials & articles
Copy link to clipboard
Copied
Actions alone cannot do that, but Scripts can.
https://jkost.com/blog/2010/09/add-file-name-as-text-layer.html
Copy link to clipboard
Copied
Thanks a lot! Just a note. The first link doesn't work. The second yes but it has only one problem. the name of the file is very long because it also writes the entire path of the file while I only need the file name. It's possible? I don't know about scripts ... sorry.
Copy link to clipboard
Copied
The first links works fine for me.
Copy link to clipboard
Copied
You can try changing the line
text_layer.textItem.contents = decodeURI(app.activeDocument.fullName);
to
text_layer.textItem.contents = activeDocument.name;

