11 Replies Latest reply on Sep 12, 2017 4:05 AM by Dale_

    Batch , Actions

    ml60750533

      Hello i have a question about batch and actions.

      I basically have to do a bunch of actions for a bunch of images. I want to ask if there is a way for me to automatically start a new batch after the old one is finnished. Or is there a way to make some sort og queue for actions or batch.

        • 1. Re: Batch , Actions
          c.pfaffenbichler Level 9
          I basically have to do a bunch of actions for a bunch of images.

          Please elaborate.

           

          Or is there a way to make some sort og queue for actions or batch.

          I assume Scripting would provide an approach.

          Photoshop Scripting

          1 person found this helpful
          • 2. Re: Batch , Actions
            fenjas29325284 Level 5

            Open an example image and start a new action. Be sure the recording mode is on.

            Select and play the first action you want to include.

            Select and play the second action you want to include.

            And so on.

            Stop your new action.

             

            In your new action's to-do list you will now see the titles of the included actions.

            action-queue.png

            Your different actions have to be carefully planned otherwise there may be error messages for missing layers, missing selections and so on.

             

            Fenja

            • 3. Re: Batch , Actions
              c.pfaffenbichler Level 9

              Based on the original post it is not clear to me whether the different Batches are intended to be applied to the same stack of images.

              • 4. Re: Batch , Actions
                ml60750533 Level 1

                I work with pictures on walls right and i have to make picture that has 7 parts so i have action for each of these 7 parts and i have to apply them to a lot of pictures and for every part i have to have different folder because i use Filename script in these actions. So i use batch to apply action to make part 1 to whole folder of pictures. So what i´am asking is if i can make some sort of queue for batches so after to first batch is finished the second one will automatically start.

                • 5. Re: Batch , Actions
                  c.pfaffenbichler Level 9

                  Once again: I assume Scripting would provide an approach.

                  So you may want to ask over on the Photoshop Scripting Forum.

                   

                  But please provide a clearer and more detailed explanation.

                  • 6. Re: Batch , Actions
                    ml60750533 Level 1

                    Thanks. And sorry for this unclear explanation.

                    • 7. Re: Batch , Actions
                      c.pfaffenbichler Level 9

                      No problem; should you post on the Scripting Forum please try to describe which Actions you run on each intended Batch, what the naming conventions and target locations for the resulting files are etc.

                      • 8. Re: Batch , Actions
                        ml60750533 Level 1

                        Ok i will try to describe it as thoroughly as i can.

                        • 9. Re: Batch , Actions
                          Dale_

                          From what I understand, you're going to need to use if/else statements to run a script based on whichever image is active.

                           

                          You can use xbytors amazing scripts to simplify the task - http://ps-scripts.sourceforge.net/xtools.html. They can transform actions into script form so you can create functions that will run if file is named x or y.

                           

                          I realise that is a vague explanation, but if you elaborate I 'may' be able to expand more (or more likely, someone much smarter than me will).

                          • 10. Re: Batch , Actions
                            ml60750533 Level 1

                            So i have action A, folder 1 and folder 2. I´m appyling action A to all pictures in folder 1 using batch and saving them to folder 2.

                            Now i have to do around 40 of these "Batches" and only way i know how to do this is to manually start every batch. Every batch lasts like 2 hours. So what i´am asking is if there is a way to make script that would start new batch after the previous one is finished. I don´t know if this will make difference but i use FileName script in my actions .

                            • 11. Re: Batch , Actions
                              Dale_ Level 1

                              You want to do something like this:

                               

                              #target Photoshop
                              
                              
                              var docRef = app.activeDocument;
                              var sourceFolder = Folder (docRef.path);
                              var sourceName = sourceFolder.name;
                              var parentFolder= Folder (sourceFolder.path);
                              var parentName = parentFolder.name;
                              
                              
                              if (parentName == "Folder 1"){
                                  //do action here
                                  }
                              else if (parentName == "Folder 2"){
                                  // do action here
                                  }
                              else {
                                  alert ("folder not found");
                                  }
                              

                               

                              Except replace "//do action here" with the function you create from the xbytor script. There is one called ActionToJavascript, copy everything for each relevant folder copy the correct action script into the right part of the script

                               

                              Hope this helps.