Forums > MaxMSP

default location for opendialog?


kb
May 8, 2006 | 11:47 am

Hello,

I’d like to launch some opendialog objects with a default location,
to avoid to navigate among different directories as I know the exact
path to search in. With ‘path’ -> [thispatcher] I easily get the
parent directory of subdirectories I’m interested in (like "Audio",
"Colors","Presets" or "Scores"). But I don’t know how to use these
paths with the opendialog objects I use. Do someone know?

Thanks,
kb



jln
May 8, 2006 | 12:25 pm

hi,

I don’t think opendialog allows a specific path as input – at least
if it’s the case, I missed the info in the doc. But if you know the
path you want to search in, you can cook something with ubumenu and/
or dropfile. There’s an exemple in the help patch of ubumenu
(‘prefix’ message). Then you could easily have a bpatcher to paste in
every of your patches. Would this do the job ?

hth,

Julien.



kb
May 9, 2006 | 8:04 am

Hi,

I succesfully tried your tip!
I now use ‘path’ -> [thispatcher] -> [sprintf "%sMyFolder"] ->
[prepend prefix] – > [ubumenu]…

Thank you!
Karim


Viewing 3 posts - 1 through 3 (of 3 total)