i want to shorten a file path, ideally, it would leave only the top right 2 folders of the path, so this:
Mycomputer:/Users/myself/Music/My Samples/keep this path/keep this path/
would end up with:
/keep this path/keep this path/
how can I truncate the string like that?
The only thing i found is printf in attached example.
it works, but it would truncate from the right and not by words but letters.
— Pasted Max Patch, click to expand. —
Copy all of the following text. Then, in Max, select New From Clipboard.