Skip to main content
Inspiring
January 24, 2025
Answered

Bridgetalk - multiple versions of Bridge installed

  • January 24, 2025
  • 2 replies
  • 872 views

Hi wizards,

If I have multiple versions of Bridge installed (2024, 2025), it always try to open the newest version to run.

Is there a way to target a specific version?

Thanks in advance

Correct answer Stephen Marsh

I believe that you can target a specific app version with code similar to:

 

bt.target = "bridge-12"; // version 2022

 

Where you will need to escape the quotes if using AppleScript.

 

 

2 replies

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
January 27, 2025

I believe that you can target a specific app version with code similar to:

 

bt.target = "bridge-12"; // version 2022

 

Where you will need to escape the quotes if using AppleScript.

 

 

Inspiring
January 28, 2025

Great, this works. Thanks Stephen.

Stephen Marsh
Community Expert
Community Expert
January 28, 2025
quote

Great, this works. Thanks Stephen.


By @greenrookie


You're welcome!

Erik Bloodaxe
Legend
January 24, 2025

"it always try to open the newest version to run"

Please would you clarify what you mean by "it"?

Inspiring
January 25, 2025

Hi, the 'it' is a an applescript droplet (clickable app). Here's the code I'm running thanks (within an Applescript, so quotation marks are escaped). I have Bridge 2024 open, but I click the droplet, it will try to open Bridge 2025 (which is installed but not running). If I have 2025 version running, it will work fine. Thanks.

 

#target photoshop;
var DD = decodeURI(GetFilesFromBridge().join('\\n')); //decode Hexadecimal characters
var XX = decodeURI(DD); //decode Hexadecimal characters??
var YY = XX.replace(/(\\/)/g,\"\"); //remove foward slash at beginning of filename
//alert (YY);
function GetFilesFromBridge() {
function script(){
var fL = app.document.selections;
var tF=[];
for(var a in fL){
if(fL[a].type =='file'){
tF.push(new File(decodeURI(fL[a].spec.name)));
}
}
return tF.toSource();
}
var fileList;
var bt = new BridgeTalk();
bt.target = \"bridge\";
bt.body = \"var ftn = \" + script.toSource() + \"; ftn();\";
bt.onResult = function( inBT ) { fileList = eval( inBT.body ); }
bt.onError = function( inBT ) { fileList = new Array(); }
bt.send(8);
bt.pump();
if ( undefined == fileList ) fileList = new Array();
return fileList;
};

Legend
January 27, 2025

That's not AppleScript, that's JavaScript. You can try changing the bridge variable to point to the specific application bundle you want to use.