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);
}
name + ".psdt\u200B"
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
...
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.
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.
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
Copy link to clipboard
Copied
This was exactly the fix I needed, thanks!
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.
Copy link to clipboard
Copied
In fact I also tried it in this sense, but isn't it?
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.
Copy link to clipboard
Copied
name + ".psdt\u200B"
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
This is helpful! I can only change it with Bridge. Thank you!
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 );
}