Bridge: Add a command bypass Camera Raw

  • 1
  • Idea
  • Updated 1 month ago
  • (Edited)
Add a command to bypass Camera RAW for RAW files.

I typically work on large batches on RAW files. I'll open them in Camera RAW, apply presets and do global edits, then open smaller batches in Photoshop for final retouching.

Using the built-in Open or Open With commands loads the files into Camera RAW again, which isn't needed because I have already applied my edits. I want them to directly open into Photoshop.

I cobbled up a script from the SDK samples to open RAW files directly (bypassing Camera RAW) and another workaround is Tools->Photoshop->Batch and use an action that leaves the files open. But it would be nice to have a built-in "Open Directly" command in Bridge.

Script follows:

if(BridgeTalk.appName == "bridge"){
//~    var newCommand = new MenuElement("command", "Open Directly", "at the end of Tools");
    var openCommand = new MenuElement("command", "Open Directly", "after Thumbnail/Open", this.menuID);
}
//~newCommand.onSelect = function (){
//~    openDirect ();
//~}

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

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

    openCommand.onDisplay = function()
    {
        try
        {       
                OpenCommand.text = "Open Directly";
        }
        catch(error){
            }
    }
Photo of David Converse

David Converse

  • 236 Posts
  • 58 Reply Likes

Posted 1 month ago

  • 1
Photo of JEA

JEA

  • 177 Posts
  • 138 Reply Likes
If you have your bridge File Associations set to the relevant version of photoshop, just select the camera raw files in bridge and press the Shift key while clicking on Open and that should bypass the camera raw dialog.
Photo of David Converse

David Converse

  • 236 Posts
  • 58 Reply Likes
Unfortunately there are some known bugs with this. It does work with the menu option though. Thank you for the info.