Consider my main script as a loop that is constantly broadcasting various events happening. For example:
FileChange: File at address XXX has changed.
FileDeleted: File at address XXX has been deleted.
ScreenSaver: Screen saver named YYY got activated.
...
What I intend to do is to have other apps that I would add now (and later on), listen to what main app is broadcasting and if it is related to it (say a script for handling FileChange
events), they get the message and do their own processing.
What are my options for achieving this model of interprocess communication?