Skip to main content
bagonterman
Inspiring
March 12, 2013
Answered

target specific version of psd from bridge talk.

  • March 12, 2013
  • 1 reply
  • 1371 views

I am trying this but its not working.

var bt = new BridgeTalk;

bt.target = "photoshop-12.0";

var crud="try{doAction('2012 Design BW','Design' );}catch(e){}";

bt.body =crud;

bt.send();

photoshop works but when I try and version it. Nothing happens.

This topic has been closed for replies.
Correct answer bagonterman

var bt = new BridgeTalk;

bt.target = "photoshop","13";

var crud="try{doAction('2012 Design BW','Design' );}catch(e){}";

bt.body =crud;

bt.send();

This worked. I am not sure the variable that has changed. But now its not working? It keeps opening Photoshop CS5. Ugg.

So I open a file and its in CS6 and then it trys to run this action in 5.

I am also no longer getting a result of true. It is now false.


var bt = new BridgeTalk;
bt.target =
"photoshop-60.032";
var crud=try{doAction('2012 Design BW','Design' );}catch(e){};
bt.body =crud;
bt.send();

Ok so I thought it worked before. I think it works now. I will have to keep my fingers crossed. I changed the target to photoshop-60.032

1 reply

bagonterman
Inspiring
March 12, 2013

Ok. Found it already. This works.

bt.target = "photoshop","13";

Inspiring
March 13, 2013

Yes you can target which every versions of the apps are installed as you have found… What I would add is you have wrapped your script in an unhandled try/catch… I would prefer to NOT do this and handle the error with the bridgetalk message onError()

bagonterman
Inspiring
March 13, 2013

Would you wrap it in a function?