Skip to main content
Inspiring
Jan 24, 2025 4:58 PM UTC
Answered

Bridgetalk - multiple versions of Bridge installed

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

Stephen Marsh
Stephen MarshCorrect answer
Community Expert
Jan 27, 2025 12:53 PM UTC

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.

 

 

9 replies

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
Jan 27, 2025 12:53 PM UTC

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.

 

 

Translate
Inspiring
Jan 28, 2025 6:49 AM UTC

Great, this works. Thanks Stephen.

Translate
Stephen Marsh
Community Expert
Community Expert
Jan 28, 2025 8:35 AM UTC
quote

Great, this works. Thanks Stephen.


By @greenrookie


You're welcome!

Translate
Erik Bloodaxe
Legend
Jan 24, 2025 5:04 PM UTC

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

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

Translate
Inspiring
Jan 25, 2025 3:52 AM UTC

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;
};

Translate
Erik Bloodaxe
Legend
Jan 25, 2025 7:54 AM UTC

I'm afraid that Applescript is outside of my knowledge base. I hope that someone else can assist you.

Translate