Copy link to clipboard
Copied
Hello,
I've found my first response. Now, How do you specify fileNaming whithout extension ? In UI i'm a value "Sans/None" but not by script.
#target photoshop
app.bringToFront();
displayDialogs = DialogModes.NO;//Tableau contenant les images
var dossier = new Folder("C:\\detourage\\image");
var dossierSortie = new Folder("C:\\detourage\\sortie");
var arrImg = dossier.getFiles("*.*");//Enregistrer les fichiers après traitement dans un autre dossier
var mesOptions = new BatchOptions();
mesOptions.destination = BatchDestinationType.FOLDER ;
mesOptions.destinationFolder = dossierSortie;
mesOptions.overrideSave = true;
mesOptions.fileNaming = [FileNamingType.DOCUMENTNAMELOWER];
mesOptions.windowsCompatible = true;
mesOptions.macintoshCompatible = true;try
{
app.batch(arrImg, "ouvrirFermer", "Test", mesOptions);
}
catch(err)
{
alert("échec : "+err.description);
}
Copy link to clipboard
Copied
I don't think that Batch will let you leave off the extension using either the script or GUI version. You would need script your own batching type script to have no extension, but why no extension?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now