navigate in folders & path

Julien Bayle's icon

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

Ignacio Viano's icon

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

Luke Hall's icon

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

Julien Bayle's icon

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