Hello list, i’m looking for a way to read out the name of the patcher i’m working in.
I thought the object thispatcher would be able to do this, but so far no luck in finding the right command.
Am I missing something very obvious?
You could use a patcherargs inside your patcher: it will output the name of the patcher thru its first inlet, eventually with the arguments you provided.
What i’m trying to get is the name of the file when i open it. So let’s say the file is called test_01.maxpat, I would like to be able to display this in a Jit window.
Sorry for the misunderstanting.
You can get the name with js:
function name ()
Note that the file extension is removed from the output. If you need it, you can rather get the filepath property and use strippath to remove the filepath.
ah great solution! thanks a lot.
Log in to reply
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.