Hi Bill,

I want my application to be able to catch parameters sent to it via
the command line.

The relaunch handler does that for Windows applications and also
doesn’t open another instance of the application. You are correct that
Mac apps run in a single instance by default and that is the behavior
I want.

I don’t want to open a document…I want to do something with the
command line parameters sent to my app.

The simple answer is that there isn't an equivalent.

The relaunch mechanism on Windows was added to make it easy to add single-instance like behavior on Windows (just as macOS has).

However remember that macOS has the AppleEvent system for making it easy to do inter-process communication, so on Mac you could use that.

i.e. Make the command-line tool use AppleScript (either by do ... as applescript) or the 'send to program' syntax to send apple events to instruct the main app.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to