navigate in folders & path

Mar 28, 2011 at 7:45pm

navigate in folders & path

hello,
I discovered recently dynamic search path with filepath object.

I’d need today to “navigate”.

This one:
[loadbang]
|
(path)
|
[thispatcher]

… gives me the folder where the patch is located.

I want to have the parent of this folder.
Any idea ?

I’ll make a standalone, in the end, I hope I won’t have problem related to that…

#55888
Mar 28, 2011 at 8:58pm

Hello Julien,

“…
[loadbang]
|
(path)
|
[thispatcher]
…”

This should give you the full (absolute) path to the patch, but it might not work if you call it from a Max Collective (or Application, which has a Collective inside).

If you’ll make a standalone you should check the [standalone] object. The attribute “usesearchpath” set to 1 creates a search path of all subfolders of the folder containing the application. Inside that folder should be the files the application will refer to.

Is this what you were asking? If not please give more details.

Best,
Ignacio

#200858
Mar 29, 2011 at 12:43am

If you use [regexp (.*/).*/] the second outlet will provide the path for the directory above the one sent to the input.

#200859
Mar 29, 2011 at 1:44pm

Hello Ignacio & Luke !
and thanks a lot.

Indeed, I’m figuring out all the differences between standalone & patch machine launching.

I hope I won’t have other surprise :)

#200860

You must be logged in to reply to this topic.