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

George Khut's icon

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

Floating Point's icon

there's an object called shell which should do what you want:
https://cycling74.com/forums/shell

George Khut's icon

We figured an alternative way around this - making shell scripts saved as .command files, that I then 'launch' in max with the ; message to open/close the other apps.