Forums > MaxMSP

Can I get the patcher window's title?

April 28, 2012 | 1:26 am

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.


April 28, 2012 | 1:05 pm

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.


April 28, 2012 | 1:37 pm

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() {
outlet(0,this.patcher.filepath);
outlet(1,this.patcher.name);
}

Cheers
Roger


April 28, 2012 | 8:13 pm

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.

@roger.carruthers
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 …


Viewing 4 posts - 1 through 4 (of 4 total)