Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3762

How to receive a command line argument in my app?

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 3762

Trending Articles