Max and other Programs
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.
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.
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!
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].
audio, midi, tcp/ip … should be enough for anything i guess.
If it’s for email, you can use a message to Max:
max launchbrowser "mailto:email@example.com?subject=your 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.
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! :)
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?