Skip to main content
Adobe Photoshop Family

27 Messages

 • 

424 Points

Wed, Jul 1, 2020 6:31 PM

Bridge: Mouse clicks to open a raw image directly into Photoshop

Cristen Gillespie told me how to go from a raw image in Bridge directly into PS by selecting an image then shift and double click on the image.  This helped, but I prefer using the mouse.  Does anybody know the clicks to do the same?  I mean go directly into PS without going into ACR like shift + double click on the image?

Responses

978 Messages

 • 

16.6K Points

3 months ago

Paste this script into a text editor. Save as PLAIN TEXT with a ".jsx" file extension. Copy into the Bridge Startup Scripts folder and relaunch Bridge.

You'll see a new Open Directly entry in the contextual menu when you right-click a selection of files in Bridge.

------------------------------------------------------------------

#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 selected.');
            retval = false;
            }
        return retval;
        }
    catch(e){
        }
    }

    openCommand.function(){
        openDirect();
        }

27 Messages

 • 

424 Points

3 months ago

Thank you.  I've been trying to convince myself to learn Basic to do scripts like this -- but I was not convinced until now.  I found a blank space in the middle two words (just text) that I think I fixed.  And the compiler said there was an error in the last line -- expecting a semicolon (;).  I put one right after />; and before openDirect.  And it worked!  Thanks a lot!

978 Messages

 • 

16.6K Points

The forum made one line into two above. This should be one line:

var scr = 'var thumbs = + '); for(var i = 0; i < thumbs.length; i++){photoshop.open(new File(thumbs[i]));}';

27 Messages

 • 

424 Points

Thank you.  By the way, is there somewhere I can go to learn about PS scripts and the basic language that is already in place?

20 Messages

 • 

518 Points

3 months ago

>".... go directly into PS without going into ACR like shift + double click on the image?"

In Bridge, File/Place/In Photoshop. One click and the image opens as a Smart Object, so you don't lose the ability to change the CR editing.





















978 Messages

 • 

16.6K Points

This only works on one file at a time, not multiple files.

27 Messages

 • 

424 Points

3 months ago

Thank you E. Dinur.