Open application from Max/MSP

bennyfromtheblock's icon

Hi,

I am trying to open make a patch that opens soundflowerbed upon starting up. I have been reading lots of posts to do with using the shell object to open a file/ file type but I don't understand how to open an application with it. I have written a very basic applescript that works fine, without me having to specify a directory etc... I was wondering if this is possible from within Max/MSP.

My Applescript looks like this:

tell application "Soundflowerbed" to activate

Any help would be appreciated

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

To send applescript to the [shell] object you need to use special formatting, in this case it would look something like the patch below:

bennyfromtheblock's icon

Thanks Luke,

What don't you know, I could have sworn I tried that already, obviously not though. Works nicely!

BTW I love your attempt1.maxpatch you posted a few minutes ago.... genius!

Cheers mate

Luke Hall's icon

Not a problem, if you click on my name here there's a link to my website that has a zip of lots of abstractions and javascripts; there's one which lets you type applescript in to a [textedit] and will format the code for [shell] which you might find useful in the future.

I'll wait until the original poster in the other thread responds and apologise, I had a long, gruelling day at work and needed to blow off steam, I feel a bit guilty now!

bennyfromtheblock's icon

Hey I know the feeling,

it nearly put me off posting my own question. Thank you again, I'll check out your website

Best wishes

Benny