How to find the folder (path) where the currently running patch is?

$Adam's icon

Hi,

how can I find out the actual path of the currently running patch? By trial-and-error it seems to me that [filepath default] would do this for me, however, the documentation doesn't say this explicitly (at least, I didn't find any explicit comment on this). Also, it's unclear what the behaviour of [filepath default] would be once I convert my patch into a standalone/application/executable; any comment on this would be indeed very helpful.

Thanks,
Ádám

P.S. The project for which I need to solve this is based on Max 5 and moving to Max 6 is not an option at the moment. I don't know whether that makes any difference in this regard, though.

Christopher Dobrian's icon

I think the 'path' message to the thispatcher object will give you what you want (out the right outlet).

$Adam's icon

Hi,

thanks!

Cheers,
Ádám