Batch rename Clipping Path

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

pude

Batch rename Clipping Path

Post by pude »

Hi
I work with Photoshop CS5. And I'm working with a lot of product images. Now i got about 2-3000 images. I need to have the same name on the path of all these images. And i also want the path to be active. Can anyone help me how to this easily?
I know there is an old thread about this. But I need help as soon as posible.

Thanks!

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

pude

Batch rename Clipping Path

Post by pude »

And I'm not familiar how to use Script Events. So I need pretty basic help on this part.
txuku

Batch rename Clipping Path

Post by txuku »

I m not sure to understand ...........

Anything like that ?

Code: Select allOpenFolder();

function OpenFolder(inputFolder)
{

        // boite de dialogue :
        inputFolder =  Folder.selectDialog("Selectionner le dossier ou sont les IMAGES A TRAITER  ")
        outputFolder =  Folder.selectDialog("Selectionner le dossier d EXPORTATION DES IMAGES  ")


         filesOpened = 0;

         fileList = inputFolder.getFiles("*.jpg");

        for (  i = 0; i < fileList.length; )
        {
        open( fileList );
                       
                         docRef = activeDocument;
          // work to do
                    i++ ;
         }
        return filesOpened;
     
}
?

or

Code: Select all//Ouvrir les images et appeler les fonctions de travail

OpenFolder();

function OpenFolder(inputFolder)
{

        inputFolder =  new Folder("c:/images");
       
        outputFolder = new Folder("c:/imageswork");
        if(!outputFolder.exist){outputFolder.create(); }
         filesOpened = 0;

         fileList = inputFolder.getFiles("*.jpg");

        for (  i = 0; i < fileList.length; )
        {
        open( fileList );
                       
                         docRef = activeDocument;
          // work to do
                    i++ ;
         }
        return filesOpened;
     
}
pude

Batch rename Clipping Path

Post by pude »

Where do i paste that code? As I said I'm not familiar how to use these scripts.
Can i build a macro with them and then use some kind of batch to apply it to all the images?
txuku

Batch rename Clipping Path

Post by txuku »

You copies in C: \ Program Files \ Adobe \ Adobe Photoshop CS4 \ Presets \ Scripts.

you copy a file. txt and rename example batchPath.jsx.

you can call with the keyboard shortcut or a script. atn - file/script/travel