Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Plugin and Companion App SDK
Viewing all articles
Browse latest Browse all 54282

Detect Last Transaction/Photoshop Response?

$
0
0

Hi

 

I am using the iOS Photoshop SDK. I am trying to recieve several messages from Photoshop and am getting some overlapping. For example I try and get the number of documents open sending this: app.documents.length.toString();

 

This gives me two responses in this order:

[ActionDescriptor]

3

 

By incrementing the transaction id I can ignore the first message and get that important info, the number. I also try and get other bits of info but when getting them at the same time I get overlap becuase incrementing the id of one message makes it return as the result of another message.

 

So is there anyway I can detect when I have recieved the last response from a message? That way when i get the last one I can start the next message rather than sending multiple at once which may caused overlapping results.

 

Alternatively, is there another way I can avoid this issue? If you have no idea what I am talking about let me know and I'll expand and add relevant code. Thanks.


Viewing all articles
Browse latest Browse all 54282

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>