On MacOS, in Terminal I issue:
open /path/to/my.app --args ‘/path/to/some/file’
In my app’s AppleEventReceived handler I can check for eventID = “rapp” and then System.CommandLine is supposed to return the argument passed from the command line. But it contains “/path/to/my.app” rather than “/path/to/some/file” which is the actual argument.
Is there a way to pass an argument to a specific instance of my.app and catch the actual argument on the other end?
4 posts - 3 participants