Opening other applications from within patcher

pichiste@gmail.com's icon

Is there an object out there that allows you to open up other applications from within a max patcher? I'm working on an app that allows the user to take a picture of him/herself and save it to disk as a jpeg. Ideally I'd like the same jpeg to open up automatically in Photoshop after being saved.
Thanks in advance!

jln's icon
johnpitcairn's icon

Quote: pichiste@gmail.com wrote on Thu, 02 November 2006 13:37
----------------------------------------------------
> Is there an object out there that allows you to open up other applications from within a max patcher? I'm working on an app that allows the user to take a picture of him/herself and save it to disk as a jpeg. Ideally I'd like the same jpeg to open up automatically in Photoshop after being saved.
----------------------------------------------------

messagebox:

;max launchbrowser "disk://path/to/image.jpg"

Replace the path with a real one, obviously. If Photoshop is the default handler for .jpg files, it will open in Photoshop.

Alternately you can use a path to the Photoshop app itself, and Photoshop will open, but that won't open the image.

c_averett's icon

Check into the shell object or tap.applescript (on a mac).

On Nov 1, 2006, at 6:37 PM, Daniel M wrote:

>
> Is there an object out there that allows you to open up other
> applications from within a max patcher? I'm working on an app that
> allows the user to take a picture of him/herself and save it to
> disk as a jpeg. Ideally I'd like the same jpeg to open up
> automatically in Photoshop after being saved.
> Thanks in advance!
>
>

pichiste@gmail.com's icon

got it working with the shell object... sending it the 'open' command followed by a file path. thanks everyone for the responses.

robotic-audio's icon

why won't this work with the shell object ?

open -a finder /Applications/MaxMSP 4.6/

this one works perfectly

open -a finder /Applications/

they both work fine in Terminal ?

i guess te space in the name is to blame, but i can't figure out how to cansel it out right....

(same with mkdir, rmdir, etc...)

Jakob Riis's icon