Can I get the patcher window's title?

Apr 28, 2012 at 1:26am

Can I get the patcher window's title?

Can I get the title of a patcher window?
I would like to automatically include the name of the current window in a file path.

Apr 28, 2012 at 9:40am


with [quebec] external here :
… a way to get the title of a subpatch …
… I did this as AFAIK in max5 it seems impossible to get it natively (even with [thispatcher]).

– Pasted Max Patch, click to expand. –


Apr 28, 2012 at 1:05pm

I don’t know how to get the title from [quebec]. The help file is a patch that reports the locked/unlocked state of the patcher. No other message than bang gets accepted (or I just don’t know what to send).

However, I would like to get the title for an application that may be offered via the Appstore. Do you think your [quebec] would meet the requirements? 64 Bit for example. I’m on a 32 Bit Mac.

Apr 28, 2012 at 1:37pm

Someone kindly posted the following Javascript to use with the js object when I asked the same question a while back:

outlets = 2;

function bang() {


Apr 28, 2012 at 2:09pm


- [quebec] reports the title on the same outlet as lock/unlock state.
- it is useful to get the name of a [patcher], not for the main window title.
- just “bang” it to attach [quebec] to the [patcher] then notifications are “automatics”.
- my computer is old ; my system too (10.4.11) ; so i don’t manage 64 bits.
- sources are on my github’s page :

… As a conclusion : use Javascript ; best for what you expect ;-)

Apr 28, 2012 at 2:10pm

Exemple :

Apr 28, 2012 at 8:13pm

Thank you, unfortunately I cannot use the suggested methods.

@vanille béchamel
I need 64 bit and I need the name of the main window, not of a subpatcher.

The [js] method looked promising first. But I cannot use supporting files and don’t know where to put the JavaScript file to get opened by the final application. I am sure this has to do with my non-existing JavaScript knowledge.

I think I will give up because the alternative to include the main window name into my file paths is too simple compared to the JavaScript effort: I type it into a message box …


You must be logged in to reply to this topic.