i have a singleton instance juce app (moreThanOneInstanceAllowed() returns false). I can successfully drop a file on the icon and anotherInstanceStarted() is invoked. However, what I want to do is be able talk to the running app from the command line, by seemingly invoking another instance.
You can do that if you make moreThanOneInstanceAllowed() return true, and then manually use your own InterprocessLock and message broadcasting to communicate between the two instances.
When another instance is started it comes to the anotherInstanceStarted() started of the previous instance. So we can use the command line argument to do some processing in the first instance. This one way u can communicate to the juce application from outside