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!
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.
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!
>
>
got it working with the shell object... sending it the 'open' command followed by a file path. thanks everyone for the responses.
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...)