I’m building a standalone, in which I’d like to be able to dynamically add a path to Max’s search path, but also to make that path recursive, to allow Max to search subfolders of the path. I know that in the File Preferences window, there’s a checkbox to allow entered paths to also have their subfolders searched, but I see no way using the filepath object to do so programmatically. Is there a way?
OK, answering my own question – Joshua at Cycling let me know that there is an undocumented way to do this – basically, you add a 1 after the pathname to indicate a recursive status for the path. Like this:
-- Pasted Max Patch, click to expand. --
Copy all of the following text. Then, in Max, select New From Clipboard.