Site logo

Hot folder in Bridge

With this script – I found it posted here by Pedro Cortez Marques – you can use Bridge to monittor a hot folder.

Here's what Pedro wrote:

  1. Select a folder on your network to be the "hotFolder" (you can change its name and in the code itself)
  2. On the computer that will be the listener over the hotFolder, just put this code on the Bridge "Startup Scripts" folder and reopen Bridge
  3. Using another computer, put some images in the folder "hotFolder" and check is the listener event handler reacts automatically.
  4. You can then add your code in the lines (see line 25) or use the file as an argument to run other code you want;
  5. In the end, after the file was processed, just move it or remove it;
  6. This listener will be triggered anytime a file is added or removed or the cache is refreshed. It works only on a folder called "hotFolder";

The script is prepared to function with Bridge always active (bring to front). If you are using photoshop, Bridge will loose focus and will fail. That is why i said to send images to the network hotFolder from another computer and leave this one to have Bridge always on focus.

There is also another chance of using the 2 apps. But more complex. If you make sure somehow to make Bridge "bring to front" (to focus) when you need to run this listener, it should work. You can use BridgeTalk to communicate between the 2 apps to embed the other app code.

I modified the script to my liking: added a sample code that resaves every psd, png and jpeg file which gets into the hot folder as tif in Photoshop. It creates a folder called New Photos on the desktop, if it doesn’t exist yet, and saves TIFs there using the following options:

The original image (psd/png/jpeg) is moved to the processing folder created automatically by the script in the HotFolder.

Of course, you’re free to add your own code here. I just made a working example to test if the script works properly.

To use the script open or create in Bridge a folder called HotFolder – the case doesn't matter – and drop a psd/png/jpeg file there. In a blink of an eye, Photoshop will resave it as tif.

Click here to download the script. If you don't know how to install it here are step-by-step instructions.