Forums > MaxMSP

Max and other Programs

Jul 16 2010 | 10:27 pm

Is there any way max can send a message to another program? Or even run an AppleScript? Im trolling through the doc but not finding anything yet.

Jul 17 2010 | 3:09 am

The [shell] external will run applescripts with no problems, serch for it on maxobjects. What are you trying to do?


Jul 17 2010 | 4:39 pm

I use ctlin and ctlout all the time to communicate with Live ( i don’t have max for Live yet) I’ve also used max to record into Logic and Live, using Soundflower as an audio driver. And I’ve also used Reaktor as a plugin within Max.


Jul 17 2010 | 6:38 pm

hm I realize my initial post was somewhat vague. What I’m really hoping to do is take a particular list/symbol generated by my patch, copy it to the clipboard, and paste it in a new email via whatever default application is set, i.e. Mail, Entourage etc. I haven’t gotten into the potential of an AppleScript yet so I dont know if its possible but thats the ideal goal. Just want to streamline the process rather than copy and paste myself.

thanks for the quick replies!

Jul 18 2010 | 12:26 am

Another user has had success before and posted their method using applescript. Take a look and see if that works for you. Obviously you can remove the bits that send the email straight away if that isn’t what you need. You can use [sprintf] to format your custom message to [shell].


Jul 18 2010 | 7:51 pm

audio, midi, tcp/ip … should be enough for anything i guess.

Jul 19 2010 | 12:12 am

If it’s for email, you can use a message to Max:

max launchbrowser " subject line&body=hello world, how are you today?"

Note the quotes, they need to be just like that to allow spaces in the fields. Quotes are squirrely in Max…try messing with them in message boxes and you’ll see. [sprintf] can let you format things more exactly once you’ve got it down.

One thing I couldn’t figure out is how to do a newline in the body of the message, using n and \n etc. in the message box didn’t work. Again, along with quotes, semicolons, and commas, backslashes are dealt with in somewhat unexpected ways, depending on the object you’re using…

The "launchbrowser" command is a little misleading, you’d think it’s always a Web browser, but actually it determines the right program based on the command and based on the user default program settings. So a web address will use a browser, a mailto will use the default email program, running a .txt file will use that program, or you can run .app or .exe programs directly. Very cool.

Jul 20 2010 | 5:08 am

thanks everyone with all the quick responses! I love this forum for that. I have found the most ease with the launchbrowser message. Kinda screwy that I had to find out on the forums about this little gem, instead of within the documentation. I have since scoured all over for it to find any other useful tidbits, but it cannot be found. oh well. at least i have you guys. Thanks again! :)

Jul 22 2010 | 7:42 pm

So there is still a lingering issue… Now im very interested to see what [shell] has to offer. The only problem is that both links to download on maxobjects are broken. Solution?

Jul 22 2010 | 10:17 pm

Its up on the Share page to download.


Viewing 10 posts - 1 through 10 (of 10 total)

Forums > MaxMSP