OpenFrameworks in max? also launching applications from Max?

Jun 25, 2009 at 4:25pm

OpenFrameworks in max? also launching applications from Max?

Two questions:

1. Are there any sets of objects available for working with OpenFrameworks (e.g. running patches or interfacing to it)?

2. Is there a way to use max to launch other external applications located on the HD?

#44537
Jun 25, 2009 at 5:05pm

To launch applications (mac) put this in a message box:

;max launchbrowser “file:///Applications/iTunes.app/

Replace “iTunes” with the app of your choice. Works the same for PC except your file path will be different? I think you need the file:/// regardless of PC or MAC

#160198
Jun 25, 2009 at 5:14pm

what object do I connect the message to?

is it also possible to close apps that you have opened?

#160199
Jun 25, 2009 at 5:17pm

nothing. just click it.

#160200
Jun 25, 2009 at 5:19pm

ah cool thanks!

#160201
Jun 25, 2009 at 5:23pm

any way to close the app once it has been opened?

I am looking through the “messages to max” and don’t see it.

In fact if I had read the helpfile on this I never would have known I can use “launchbrowser” for anything other than opening a URL in a web browser/

#160202
Jun 25, 2009 at 5:35pm

Me neither, I only know about that command bcs I searched the forums the other day. Not sure how to close an application. Are you on a mac or pc? If Mac, maybe you can use a shell object (someone made one) and send a message to the terminal telling it to kill an application… I do not know :[

#160203
Jun 25, 2009 at 6:05pm
#160204
Jun 26, 2009 at 8:03pm

You could use thomas grill’s py/pyext python externals to launch and control other apps. Depends how happy you are with python.

#160205
Oct 9, 2012 at 10:27am

I’m quite keen on your first question, its very relevant to a project I’m collaborating on, is there a way to open and talk to OpenFrameWorks patches within max? In the same way you would with a bpatcher?

#160206
Oct 9, 2012 at 12:11pm

I know that there is an external for executing AppleScript in Max. And in AppleScript you can use the Scripting-Functions of an application or simply access the Cocoa-Accessibility-Framework which lets you explore and control every User-Interface (if it is using the Accessibility Framework which normally every UI-Element does) …

Also, in most cases, you can access Data through the AppleScript-Bridge…

Just check’ that out!

Simon

#160207
Mar 4, 2013 at 3:48pm

To quit apps, I use the same launch browser message as mentioned above, but then compile an apple script as an application, using the following:

tell application “[Application Name]“
quit
end tell

replacing [Application Name] with the name of your app (the name that appears in the dock when the application is run )

#160208
Mar 4, 2013 at 4:41pm

you can communicate with OpenFrameworks using udpsend / udpreceive

you may or may not want to format the messages as OSC. if so, you’ll probably want to download the osc-route object from cnmat.

#160209
Nov 17, 2013 at 7:43pm

Hi I’m getting this

Max could not launch URL. err = -666
when i send

;max launchbrowser “file:///Applications/iTunes.app/“

did some body knows what happens ?

please

thanks

#271501
Nov 18, 2013 at 4:00am

Tochtli, just remove the “”
in fact if you copy paste “” from the forums, you’ll have troubles often, so just remove the “” you copypasted and type them back on. If you do this in a max message box for

;max launchbrowser “file:///Applications/iTunes.app/“

you’ll see that the “” disappear. It’s a problem of “” formatting : when on the forum, they are converted to ““ instead of “”. As i’m typing it, i’m not even sure it will show any difference when this message will be posted, but the characters remain ‘silently’ different when you copypaste them.

#271518

You must be logged in to reply to this topic.