2 Replies Latest reply on Oct 17, 2015 2:04 AM by pixxxel schubser

    Problems sending bridgetalk

    Gonterman1201 Level 1

      I am sending a bridge talk message. When i add the variable I want to use it does not read the rest of the functions I send.

       

      bt=new BridgeTalk();

      bt.target="photoshop-70.032";

      var myPsDoc = app.open(new File(input));

       

      bt.timeout = function( ) { while(bt.getStatus("photoshop-70.032") != "IDLE"){bt.timeout = 4;}};

      bt.body = "fPath="+ fPath.toString()+";"+"\r"+"HJKC2015BW();"+HJKC2015BW.toString() ;

      //"var fPath="+ fPath.toString()+";"

       

      //bt.onError = function( btErr ) { result = btErr.body };

      //bt.onResult = function( btRes ) { result = btRes.body  };

      //bt.onTimeout = function( btOut ) { result = btOut.body  };

      //bt.body=step12()+step12.toSource();

      //bt.body=HJKC2015BW();

      $.writeln(bt.body);

      bt.send(8);

       

      See Highlighted orange text. When I include this it doesn't run HJKC2015BW(); Any ideas why??