4 Replies Latest reply: Oct 7, 2014 10:22 AM by ojodegato RSS

    Bridge open file run photoshop action combo

    ojodegato Community Member

      When opening photoshop documents via Bridge,

      can a photoshop action run automatically on the files opened by Bridge?

        • 1. Re: Bridge open file run photoshop action combo
          Pedro Marques Community Member

          The listeners on photoshop will work to auto-start any action when you use 'Open'.

          Unfurtunetly, there is not a listener to the 'OpenInCameraRaw', this took me crazy for years!

          So Photoshop can't detect automatically when a image was just opened from the use of the CameraRaw plugin.

          • 2. Re: Bridge open file run photoshop action combo
            ojodegato Community Member

            Pedro,

            I am compositing hundreds of tif images. The work flow stars by making collection stack in Bridge. Then I open the stack with Dr.Browns services Place-A-Matic 8bit tool. Next, apply a photoshop action. Finally,  close and save the new layered image.

             

            I am trying to find out if this process can be automated.

             

            The ideal workflow would include opening each image stack one at time, run the photoshop action, close the file and then proceed to open the next image stack in the Bridge collection.

             

            I am not clear how to build this work flow yet.

            So far it occurred to customize Dr.Brown's Services Place-A-Matic script by adding a run action command at the end of the script.

             

            Dr.Browns Services is listed under the Bridge >> preferences >> startup scripts but it is not in the Bridge Startup Script folder.

            The first step would be to find the script in my local system.

             

            Any other ideas?

            • 3. Re: Bridge open file run photoshop action combo
              Pedro Marques Community Member

              I can only help you with the code specific for Bridge.

              I have never used Dr.Browns services Place-A-Matic 8bit tool and I can't figure how to integrate it inside another script.

               

              Still, I think you must use BridgeTalk to send the code related to photoshop from Bridge to Photoshop. I can't help you with that.

               

              // In a specific collection, load all stacks

              var allStacks = app.document.stacks;

              // create a routine on each single stack

              for (var a in allStacks) {

                  // on each single stack, load all inner thumbnails

                  var thisStackInnerThumbs = app.document.stacks[a].thumbnails;

                  for (var b in thisStackInnerThumbs) {

               

                    $.writeln("stack_" + a + " | " + thisStackInnerThumbs[b].name); // this will add ESTK console the name of each individual tif image in each stack

               

                      // ???? Dr.Browns services Place-A-Matic 8bit tool [BridgeTalk ???]

                     

                      // running a photoshop action [BridgeTalk]

                     

                      // saving layered tiff [BridgeTalk]

                     

                      // closing all opened images [BridgeTalk]

                     

                  }

              }

              • 4. Re: Bridge open file run photoshop action combo
                ojodegato Community Member

                Thanks for the providing this reference script. 

                Perhaps someone with advanced Bridge scripting knowledge can help construct the script. My knowledge of Bridge scripting is limited.

                 

                I have ben using the Dr.Browns's Place-A-Matic script i my composting workflow. I can also achieve the same compositing file structure using the Bridge >> Tools >> Load Files into Photoshop Layers which might simplify the scripting process.