Skip to main content
Inspiring
March 31, 2015
Question

Any way to get BridgeTalk onResult back to main()?

  • March 31, 2015
  • 1 reply
  • 844 views

When BridgeTalk gets a string of data back from the target app via the onResult function, the string that is returned from the target stays within the onResult function, and the only apparent way of doing anything with it is to define a function within the onResult() function and then working with it there.  However, I'd like to get it back to the body of the function that executed the BridgeTalk object, where I could use it with other objects I have brought in from other places.  So far, it looks like there is no defined way to do this aside from writing out to a file, which can then be read from main() -- the parent function.

Is my understanding correct?  Is there a way to work around this?

Definitely, I am not a Javascript expert.

bridgeTalkObj.onResult = function( responseMsgObject ) {

// handler defined here

};

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
April 1, 2015

I have never written a bridge script  this is not the best place to ask your question. There are better forums to ask in Photoshop Scripting and

Search https://forums.adobe.com/search.jspa?place=%2Fplaces%2F1384011&q=Bridgetalk+result&sort=updatedDesc

JJMack
Inspiring
April 1, 2015

I left an example that does this in this thread.

Quickly retrieve Exif metadata