Insert Current Filename (Photoshop Script)

Hey guys, we have just created a small utility/tool/photoshop-script which will come in handy to you guys. Its called Insert Current Filename.

Its a Photoshop Script that basically inserts current file-name into a new layer (top of the heap) of the current file. So if you ever need a script, which on click of a button would add your filename into a text layer within the psd file, this script will be handy for you.

How to Install “Insert Current Filename”:

  1. Download the ZIP file by clicking here. (~4kb)
  2. Extract to a temp location
  3. Copy two files “TS Insert FileName.jsx” and “TS-insert-filename.html”  to “Adobe Photoshop CS#/Presets/Scripts/” folder
    1. This step will need Admin privileges
    2. *** Make sure to copy both files as mentioned above. ***

How to Run this photoshop script:

  1. Restart Photoshop
    – file -> script should now have an new option of “TS Insert FileName”
  2. Open any image file
  3. Run file -> scripts -> “TS Insert FileName”
  4. A setting popup appear
    1. select the font size of the text you prefer
    2. Decide if you want to include the file path?
    3. Decide if you want to include the file extension?
  5. Click Insert.

Insert Current Filename script tested in:

1. Windows/Photoshop CS5

It would be great if you guys can give me your feedback on the script, like your PS version, did it work or had any issue, etc.

3 Replies to “Insert Current Filename (Photoshop Script)”

  1. Hello
    I downloaded this script. Thank You. I want to exclude the file path and the file extension. Can I automate this phase also?

    1. You need to edit the adobe script file…

      Open it with Notepad and change
      “incPath: Checkbox { text:’Include Path’, value: true }” to value:false
      and
      “incExt: Checkbox { text:’Include Extension’, value: true}” to value: false.

      I hope it helps somehow (that way when on Action you will only need to press ‘Enter’ and you will get the FileName without the path or extension.

Leave a Reply

Your email address will not be published. Required fields are marked *