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

Save file with .psdt extension

Advocate ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

I need to save the file with a .psdt extension
I have seen on the web and on the adobe forum but I have not found anything on this
I would like to know if it is possible
I tried this script by editing .psd with .psdt
but I have not had positive results
can someone help me?

 

 

// script
var psdoutputFolder = Folder.selectDialog("SAVE FILE .PSD");
save();

function save(){
  var Name = app.activeDocument.name;
  var psdsaveFile = File(psdoutputFolder + "/" + Name +".psdt");
  SavePSD(psdsaveFile);
}

function SavePSD(saveFile){
  psdSaveOptions = new PhotoshopSaveOptions();
  psdSaveOptions.embedColorProfile = true;
  psdSaveOptions.alphaChannels = true;
  activeDocument.saveAs(saveFile, psdSaveOptions, true, Extension.LOWERCASE);
}

 

TOPICS
Actions and scripting

Views

3.3K

Translate

Translate

Report

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 2 Correct answers

Valorous Hero , Oct 02, 2019 Oct 02, 2019
1. You can rename the file after saving.
2. You can make an imitation (Photoshop will understand such a file)
 

 

name + ".psdt\u200B"

 

 
 

Votes

Translate

Translate
Community Expert , Oct 02, 2019 Oct 02, 2019

Here's a workaround, using r-bin's rename suggestion, but I didn't have to use the non-breaking space. When difining the file to be saved, I used the psd extension, because if I used the psdt one, the file would not exists, as it was saved as a psd. Then I could rename it.

#target photoshop
// script
var psdoutputFolder = Folder.selectDialog('~/desktop/');
var Name = app.activeDocument.name;
var psdsaveFile= new File()
var nameNoExtension = Name.split('.')[0];
save();

psdsaveFile.rename(nameNoE
...

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

Do you need help with script or to simply save file with psdt extension? I can not help you with script perhaps smeone else will provide solution. If you want to save file manually with .psdt extension then add t after .psd when saving fie using Fie > Save As. It won't work with Photoshop action, by the way.

Votes

Translate

Translate

Report

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 ,
Feb 18, 2020 Feb 18, 2020

Copy link to clipboard

Copied

Hi, 

I am using a Mac with the most recent version of MacOS Catalina, and this is not working for me. Is this just for Windows? I've tried adding the 't' to psd when doing Save As, as well as outside of Photoshop in my file browser, and either way, when I open the file the name is filename.psdt.psd. It seems that it thinks I am trying to include the psdt part in the name and when I open the file it does not behave like a template.

Votes

Translate

Translate

Report

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 ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

I had the same problem but came up with this:

You need to make sure you have "View all file extensions" set to ON in Finder Settings > Advanced. If you don't, MacOS will not ask if you would like to keep the new file extension but rather add psdt before the .psd extension.

 

Hope it helps 😉

 

//Seb

Votes

Translate

Translate

Report

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 ,
Apr 16, 2021 Apr 16, 2021

Copy link to clipboard

Copied

LATEST

This was exactly the fix I needed, thanks!

Votes

Translate

Translate

Report

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 ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

Seems to be a bug. I can't save a psdt file even using action manager code, although it records it.

Votes

Translate

Translate

Report

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
Advocate ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

In fact I also tried it in this sense, but isn't it?

Votes

Translate

Translate

Report

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 ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

There is definately a bug, which I filed with Adobe. We'll see if they can correct it, and if so how long.

Votes

Translate

Translate

Report

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
Valorous Hero ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

1. You can rename the file after saving.
2. You can make an imitation (Photoshop will understand such a file)
 

 

name + ".psdt\u200B"

 

 
 

Votes

Translate

Translate

Report

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
LEGEND ,
Oct 03, 2019 Oct 03, 2019

Copy link to clipboard

Copied

Nice to meet you on new forum 😉

Votes

Translate

Translate

Report

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 ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

If your only problem is to change extension from .psd to .psdt then you can use Bridge : Tools > Batch Rename > String Substitution.

Votes

Translate

Translate

Report

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 ,
Jun 14, 2020 Jun 14, 2020

Copy link to clipboard

Copied

This is helpful! I can only change it with Bridge. Thank you!

Votes

Translate

Translate

Report

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 ,
Oct 02, 2019 Oct 02, 2019

Copy link to clipboard

Copied

Here's a workaround, using r-bin's rename suggestion, but I didn't have to use the non-breaking space. When difining the file to be saved, I used the psd extension, because if I used the psdt one, the file would not exists, as it was saved as a psd. Then I could rename it.

#target photoshop
// script
var psdoutputFolder = Folder.selectDialog('~/desktop/');
var Name = app.activeDocument.name;
var psdsaveFile= new File()
var nameNoExtension = Name.split('.')[0];
save();

psdsaveFile.rename(nameNoExtension+'.psdt')

function save(){
  psdsaveFile = new File(psdoutputFolder + "/" + Name +".psd");
  SavePSD(psdsaveFile);
}

function SavePSD(saveFile){
    var idsave = charIDToTypeID( "save" );
        var desc1003 = new ActionDescriptor();
        var idAs = charIDToTypeID( "As  " );
            var desc1004 = new ActionDescriptor();
            var idmaximizeCompatibility = stringIDToTypeID( "maximizeCompatibility" );
            desc1004.putBoolean( idmaximizeCompatibility, true );
        var idPhtthree = charIDToTypeID( "Pht3" );
        desc1003.putObject( idAs, idPhtthree, desc1004 );
        var idIn = charIDToTypeID( "In  " );
        desc1003.putPath( idIn, new File( saveFile) );
        var idDocI = charIDToTypeID( "DocI" );
        desc1003.putInteger( idDocI, 378 );
        var idsaveStage = stringIDToTypeID( "saveStage" );
        var idsaveStageType = stringIDToTypeID( "saveStageType" );
        var idsaveSucceeded = stringIDToTypeID( "saveSucceeded" );
        desc1003.putEnumerated( idsaveStage, idsaveStageType, idsaveSucceeded );
    executeAction( idsave, desc1003, DialogModes.NO );
    }

 

Votes

Translate

Translate

Report

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