Trigger Photoshop extension/plugin workflow with external input/message/event

I’m looking for an architecture that’d enable a plugin to wait for an external input in order to proceed.
As an example:

  1. User installs a photoshop extension/plugin
  2. The plugin patiently waits for an external input, e.g. a psd file path
  3. Once an external message or event gets into the plugin it then proceeds to open the psd file from a path and do some random work with it.

This is a simplistic representation of my use case:

Is this even possible?

I personally never dealt with web sockets, but probably that’s what you’re looking for

I personally never dealt with web sockets , but probably that’s what you’re looking for

Thanks for posting the link! That should do.