• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
Mar 30, 2015 Mar 30, 2015

Copy link to clipboard

Copied

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

};

TOPICS
Actions and scripting

Views

792

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Apr 01, 2015 Apr 01, 2015

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 01, 2015 Apr 01, 2015

Copy link to clipboard

Copied

LATEST

I left an example that does this in this thread.

Quickly retrieve Exif metadata

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines