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

[CS3][JS] Batch

New Here ,
Aug 13, 2009 Aug 13, 2009

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);
}

TOPICS
Actions and scripting
677
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
Adobe
Guru ,
Aug 13, 2009 Aug 13, 2009
LATEST

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?

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