Copy link to clipboard
Copied
I have script in which socket object reads a port (say 80) for incoming requests.
It works well but blocks the application 😐
This script does following things:
1. listen to port 80 for incoming requests.
2. Read the request and then execute another script/function targeting ADOBE application.
AND keep on listening to incoming requests.
Is there any solution (something like threading) which will not block the application?
Is there a way to run the script not targeting any Adobe application?
You need to develop a plugin interface which will handle this for you, outside InDesign scope. ExtendScript is monothreaded. If you can't develop a C++ plugin using Adobe InDesign SDK, you will have to develop a CEP plugin, which will handle NODEJS to do the "socket listening" to your purpose
Copy link to clipboard
Copied
You need to develop a plugin interface which will handle this for you, outside InDesign scope. ExtendScript is monothreaded. If you can't develop a C++ plugin using Adobe InDesign SDK, you will have to develop a CEP plugin, which will handle NODEJS to do the "socket listening" to your purpose
Copy link to clipboard
Copied
I marked the above answer correct, if someone disagrees, leave a comment.
For help on CEP see some of the sources Extensions / Add-ons Development including Adobe HTML Panels Development What you need to know & where to find it? | Creative-Scripts.com