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

Automate/ Contact sheet II. Is there a way to not have the file extension in the captions?

Explorer ,
Nov 22, 2023 Nov 22, 2023

What it says in the subject!

 

Thanks

 

 

 

 

TOPICS
macOS
755
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

correct answers 1 Correct answer

Community Expert , Nov 22, 2023 Nov 22, 2023

@Brigitte23914987gcbi 

 

Quit Photoshop.

 

Backup the ContactSheetII.jsx file found in your Photoshop application Presets/Scripts directory.

 

Edit the ContactSheetII.jsx file in a plain text editor (if using Apple TextEdit, ensure that it is plain text mode and not rich text).

 

Edit line 6587 which should read as:

 

  self.noExtensions    = false;

 

Change the boolean value:

 

  self.noExtensions    = true;

 

Restart Photoshop and enjoy!

 

A full-featured advanced Contact Sheet X can be found

...
Translate
Adobe
Community Expert ,
Nov 22, 2023 Nov 22, 2023

If you use Bridge > Output tab or workspace, you can omit the file extension by unchecking the option Include File Extension in the Document section of the Output panel.

exclude file extension bridge.jpg

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 ,
Nov 22, 2023 Nov 22, 2023

@Brigitte23914987gcbi 

 

Quit Photoshop.

 

Backup the ContactSheetII.jsx file found in your Photoshop application Presets/Scripts directory.

 

Edit the ContactSheetII.jsx file in a plain text editor (if using Apple TextEdit, ensure that it is plain text mode and not rich text).

 

Edit line 6587 which should read as:

 

  self.noExtensions    = false;

 

Change the boolean value:

 

  self.noExtensions    = true;

 

Restart Photoshop and enjoy!

 

A full-featured advanced Contact Sheet X can be found here:

 

https://sourceforge.net/projects/ps-scripts/files/ContactSheetX/v2.2/CSX-2_2.zip/download

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 ,
Nov 22, 2023 Nov 22, 2023
LATEST

An alternative to editing the ContactSheetII.jsx file is to run a script to remove filename extensions from all text layers:

 

#target photoshop
// Remove filename extension from all text layers

for (var i = 0; i < app.documents.length; i++) {
    app.activeDocument = app.documents[i];
    var doc = app.activeDocument;
    for (var j = 0; j < doc.layers.length; j++) {
        try {
            doc.activeLayer = doc.layers[j];
            if (app.activeDocument.activeLayer.kind == LayerKind.TEXT) {
                doc.activeLayer.textItem.contents = doc.activeLayer.textItem.contents.replace(/\.[^\.]+$/, '');
            }
        } catch (e) {}
    }
}

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

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