Question
Bridgetalk script no longer working on 2020
Hi, so I recently upgraded to the 2020 creative cloud from cs6, I have this script that communicates with photoshop to do a very specific mockup of a candy wrapper.
However since the upgrade it won't really do anything on the photoshop side of things anymore, it works until photoshop opens up, which it does, then nothing happens.
Here is a snippet of my code up until it's supposed to open a specific document:
app.activeDocument.layers["Tryck"].hasSelectedArtwork = true;
app.executeMenuCommand('copy');
btMessaging( 'photoshop',psScript );
function btMessaging( targetApp, script ) {
var bt = new BridgeTalk();
bt.target = targetApp;
bt.body = script;
bt.send( 1 );
};
var scriptPath = (new File($.fileName)).path
var aiFile = File(scriptPath + '/mockup/mockup.psd');
var aiFile2 = File(scriptPath + '/mockup/mockupdone.psd');
var psScript = 'app.displayDialogs = DialogModes.NO;';
psScript += 'app.open(' + aiFile.toSource() + ');';
Of course it continues on to do other stuff with additional psScript += lines which are not included, but it won't even do this first simple step of opening the correct document anymore...