Opening External Application with Max

Oli Mason's icon

Hi Everyone,

What I am looking to do is use Max to open an external application and a saved preset.

For example;

Native Instruments 'Massive' Plugin & Preset Number 44?!

Is this at all possible? I hope it is!

I have got a feeling the preset part may be a little tricky but Im sure one of you guys knows how!

Regards,

Oli

LSka's icon

check out the vst~ object.

Oli Mason's icon

Hi thanks for the reply, I probably used massive as a bad example, its actually a program that projects interactive animations and the presets are for loading different animations.

I need to make child friendly front end for loading new presets that will be on a touch screen panel, so rather then the child clicking 'load-hard drive-my documents-preset1' etc they can just touch a picture of what they want on and it will load.

Regards,

Oli

LSka's icon

well, if you're on Mac and your program supports Applescript, you can try sending osascript commands with the [shell] external
https://cycling74.com/tools/bernstein-shell/

Oli Mason's icon

Hi, would it be possible for you to send me an example of how to do this?

its all quite new to me so Im a little lost.

Regards,

Oli.

LSka's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Oli,
here's an example:

With this patch I load live sets in Ableton Live selecting the files in Max.

I think you can do something similar if your program supports Applescript (osascript is a command-line interface for Applescript, you can access by [shell]). You just need to find the correct script syntax to control your app.

Oli Mason's icon

cool! thanks for your help!