Skip to main content
Adobe Photoshop Family

29 Messages

 • 

454 Points

Sun, Aug 2, 2020 10:45 PM

Bridge Startup Scripts - A script disappeared

I had a Bridge Startup Scripts that was working fine until Adobe upgraded Photoshop again.  Now it disappeared.  It was one that David Converse  made so I could go directly into Photoshop from Bridge called #target Bridge.  How can I fix it?

Responses

988 Messages

 • 

16.7K Points

3 months ago

What is the script name? #target bridge is part of the code, not the name.

If you open Bridge preferences and then Startup Scripts, there is a button to reveal your startup scripts folder. What is in there?

29 Messages

 • 

454 Points

3 months ago

I used target bridge as the name.  In the Startup Scripts, it is target bridge.  When I start up Bridge, it now gives me the error shown below, and the box by target bridge is not checked.

988 Messages

 • 

16.7K Points

Ok you are probably using Open Directly which is an old script I had posted on here. It looks like something got corrupted along the way.

It should be:

# target bridge
if(BridgeTalk.appName == "bridge"){
    var openCommand = new MenuElement("command", "Open Directly", "after Thumbnail/Open", this.menuID);
}

function openDirect(){
    try{
        var t = app.document.selections;
        var files = new Array();
        for(var i = 0;i < t.length;i++){
            if(t[i].spec instanceof File){
                files.push(t[i].spec);
                }
            }
        if(files.length > 0){
            var scr = "var thumbs = + "); for(var i = 0; i < thumbs.length;i++){photoshop.open(new File(thumbs[i]));}";
            var bt = new BridgeTalk();
            bt.target = "photoshop";
            bt.body = scr;
            bt. function(eObj){ retval = false; $.writeln(eObj.body); }
            bt.send();
            }
        else{
            alert("No files chosen.");
            retval = false;
            }
        return retval;
        }
    catch(e){
        }
    }

    openCommand.function(){
        openDirect();
        }

29 Messages

 • 

454 Points

Thanks!  I got it working again!