Opening other applications from within patcher

Nov 2, 2006 at 12:37am

Opening other applications from within patcher

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!

#28476
Nov 2, 2006 at 1:11am

#87467
Nov 2, 2006 at 1:12am

#87468
Nov 2, 2006 at 3:29am

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.

#87469
Nov 3, 2006 at 3:55pm

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!
>
>

#87470
Nov 6, 2006 at 10:00pm

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

#87471
Nov 6, 2006 at 11:43pm

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…)

#87472
Nov 7, 2006 at 12:32am

#87473

You must be logged in to reply to this topic.