Watched folder functionality
I shoot product photos tethered with Canon Utility and review the captures in Bridge. Canon Utility has a linked software setting which calls an app after each capture. On the Mac, this feature switches focus to Bridge but on Windows 10, Canon Utility won't switch to Bridge automatically. I don't know if this is an Adobe or Canon bug.
Bridge unfortunately doesn't have a watched folder (sometimes called a hot folder) feature, so there is no built-in way to fix the problem.
I decided to write a watched folder script that can run arbitrary functions. This works perfectly and fixes the problem I'm having. It can be easily modified to do pretty much any processing that was needed and can be scripted.
Add the script below to Startup Scripts and run it to start the operation.
This could be modified to only work on a specific folder. When the menu item was selected, an choose folder dialog could allow hot folder selection and then the script could test to see if that was the active folder before processing.
---------------------------------------------
if(BridgeTalk.appName == 'bridge'){
try{
var wfMenu = MenuElement.create('command', 'Watched Folder', 'at the end of Tools'); //create new menu command
wfMenu.onSelect = function(){
//choose folder dialog could be added here to set a specific hot folder
app.eventHandlers.push({handler: wfOpenDocument}); //runs on window load
function wfOpenDocument(event){
if(event.object instanceof Document && event.type == 'loaded'){
//if a hot folder was defined, would test for it here
app.bringToFront(); //do stuff here
}
}
}
}
catch(e){
alert(e + e.line);
}
}
