Dynamical setting for temporary search paths

carloskleiber's icon

Hello,
I have watched the "Do you know?" tutorial n.37 about temporary search paths
https://cycling74.com/2011/10/03/week-37 ... arch-path/

and would like to combine this method with detecting the path of the max patch itself. But I do not know if this latter can be done.

A combined method would be very useful to save [coll] data as an external file right into the folder containing the max patch. Besides, a max patch retrieved from archives or backups would also find its corresponding data right away.

Can this be done?
thank you for all suggestions
carloskleiber

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Try this.

carloskleiber's icon

Thank you for the answer, [thispatcher] is the object I have overlooked. As for [relativepath] if I understand correctly it only makes a difference if I am inside Applications/Max5/, which will not be in case for me (I want to use the folder where I save my max patch, which can be anwhere.)
But for the moment I also have a problem to define with precision where my data will be saved in a first place. It is probably better to ask under a different thread title.

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.

So your asking for the absolute path to the stored patcher?

carloskleiber's icon

Rick, this is perfect. Just adding the absolute path to write and read messages. No possible mistakes. I didn't realize this could be done.
Thank you!