sending a message from Max to close and quit and external application

    Sep 28 2019 | 3:59 am
    Hi all I am running an installation with Max in conjunction with some custom-made apps running from Terminal. I can launch these apps using the message object in Max e.g.
    " ; max launchbrowser file://////Users/georgekhut/Desktop/hrse/bin/OscReceiveTest.command"
    But I can't see how to close these apps – in the event that they stop working – and I need to relaunch them. Being Terminal apps, ideally I'd close them with some message equivalent to control + c to close, then command + q to quit? Any suggestions welcome.
    All the best George