Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
1

Actions for name file

New Here ,
Sep 28, 2020 Sep 28, 2020

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.

209
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Sep 28, 2020 Sep 28, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 28, 2020 Sep 28, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2020 Sep 28, 2020

The first links works fine for me. 

Screenshot 2020-09-28 at 11.13.56.pngexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2020 Sep 28, 2020
LATEST

You can try changing the line 

text_layer.textItem.contents = decodeURI(app.activeDocument.fullName);

to 

text_layer.textItem.contents = activeDocument.name;

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines