Skip to main content
Known Participant
October 15, 2024
Question

javascript - open bridge to specific folder

  • October 15, 2024
  • 2 replies
  • 616 views

I have an Electron app and I want to have a button that opens a selected folder in bridge.

I can open Bridge from the button, but I can't figure out how to tell Bridge to open a specific folder.

 

Is it possible? I am using fairly old version of electron, but since it does open I don't think that is an issue. I feel like there is just a different way to pass in the folder.

 

here is what I have:

const openInBridge = (folderPath: string) => {
    const bridgePath = path.join(
      'C:/Program Files/Adobe/Adobe Bridge 2024/Adobe Bridge.exe'
    );

    shell.openExternal(`${bridgePath}`);
  };

I've tried passing in a path after the bridge path, also with -f then the path. 

Any ideas? 

This topic has been closed for replies.

2 replies

Stephen Marsh
Community Expert
Community Expert
October 16, 2024

Another option is using inter-application BridgeTalk to set a target directory path in Bridge. An example of a better-than-native feature for Photoshop where Browse in Bridge actually goes to the image:

 

Legend
October 15, 2024

Electron apps are often dreck, unfortunately, neither Windows nor Mac and lacking support for native technology. I'm not sure if Bridge will accept COM or Apple Events but you'd need both if you are trying to make this cross-platform. Bridge can be scripted with ExtendScript or (in v15) UXP, but again I don't know how you pass a message from your app to Bridge.

fpl619Author
Known Participant
October 15, 2024

thanks for the fast reply, I was hoping there was just some flag you could pass in for the path to open to but maybe not. 

Legend
October 15, 2024

You could write your path to a text file and open that file with bridge, and then use the path variable. I suppose you could look at the SDK for answers.

https://developer.adobe.com/console/76580/servicesandapis/br