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

How to run a Socket object without blocking the application?

Explorer ,
Sep 05, 2018 Sep 05, 2018

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?

TOPICS
Scripting

Views

453

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

correct answers 1 Correct answer

Community Beginner , Sep 05, 2018 Sep 05, 2018

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

Votes

Translate

Translate
Community Beginner ,
Sep 05, 2018 Sep 05, 2018

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

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
Guru ,
Sep 06, 2018 Sep 06, 2018

Copy link to clipboard

Copied

LATEST

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

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