BridgeTalk Specifiers for CS2 / CS3

Photoshop Script Snippets - Note: Full Scripts go in the Photoshop Scripts Forum

Moderators: Tom, Kukurykus

Andrew

BridgeTalk Specifiers for CS2 / CS3

Post by Andrew »

We've been discussing this in a thread on the Image Data Collector script but it may be easier to find here. This is my version of obtaining a specifier for BridgeTalk when you do not know if CS2 or CS3 is loaded:

Code: Select allalert(getBTSpecifier('photoshop'));

alert(getBTSpecifier('bridge'));

function getBTSpecifier(tApp) {
   if (BridgeTalk.appName == tApp) return tApp + '-' + app.version.replace(/\..*$/,"")
   else if (BridgeTalk.appName == 'bridge' && tApp == 'photoshop') return tApp + '-' + Number(app.version.replace(/\..*$/,"") + 8);
   else if (BridgeTalk.appName == 'photoshop' && tApp == 'bridge') return tApp + '-' + Number(app.version.replace(/\..*$/,"") - 8);
}

I use BT in many situations including to load scripts in Photoshop from Photoshop. This is not tested in CS3 since I have not managed to download an uncorrupted version to date.

Andrew