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

  • 1
  • Question
  • Updated 1 month ago
  • (Edited)
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?
Photo of David Cardon Rich

David Cardon Rich

  • 16 Posts
  • 2 Reply Likes

Posted 1 month ago

  • 1
Photo of David Converse

David Converse

  • 968 Posts
  • 281 Reply Likes
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 = eval(' + files.toSource() + '); 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.onError = function(eObj){ retval = false; $.writeln(eObj.body); }
            bt.send();
            }
        else{
            alert('No files selected.');
            retval = false;
            }
        return retval;
        }
    catch(e){
        }
    }

    openCommand.onSelect = function(){
        openDirect();
        }

Photo of David Cardon Rich

David Cardon Rich

  • 16 Posts
  • 2 Reply Likes
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!
Photo of David Converse

David Converse

  • 968 Posts
  • 281 Reply Likes
The forum made one line into two above. This should be one line:

var scr = 'var thumbs = eval(' + files.toSource() + '); for(var i = 0; i < thumbs.length; i++){photoshop.open(new File(thumbs[i]));}';
Photo of David Cardon Rich

David Cardon Rich

  • 16 Posts
  • 2 Reply Likes
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?
Photo of E. Dinur

E. Dinur

  • 18 Posts
  • 6 Reply Likes
>".... 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.





















Photo of David Converse

David Converse

  • 968 Posts
  • 281 Reply Likes
This only works on one file at a time, not multiple files.
Photo of David Cardon Rich

David Cardon Rich

  • 16 Posts
  • 2 Reply Likes
Thank you E. Dinur.