Retrieving patch title or filename without javascript

    Jun 02 2010 | 2:03 pm
    Is there a way to get to the title or filename of a patcher from within?
    The only way I know is to use javascript "this.patcher.filepath" and then strip everything but the filename. I don't want to use javascript (it adds an extra file which I really don't want in this case) so I'm looking an alternative. I hoped sending "gettitle" to thispatcher would do the trick but that doesn't work.

    • Jun 02 2010 | 2:20 pm
      I would expect the "path" message to thispatcher to do this, as the help file describes its function as:
      "output the full pathname of the patcher out the right outlet"
      This does not appear to be accurate -- instead, thispatcher reports the path of the patcher's enclosing folder.
    • Jun 02 2010 | 2:25 pm
      Yes, exactly. Too bad :(
    • Jul 31 2010 | 5:06 pm
      No joy with this, I take it, so would anyone be kind enough to post the js method for a non js speaker? cheers Roger
    • Aug 01 2010 | 1:21 am
      Here you go Roger, enjoy!
      outlets = 2;
      function bang() {
    • Aug 01 2010 | 11:15 am
      I also don't like (most of the times) too much files. A real simple patch that does what you want but not bulletproof. :) When you keep the names of your max patches in a clear order then you can get the latest saved one out, when you need this.
    • Aug 01 2010 | 2:09 pm
      Excellent, thanks! cheers Roger
    • Jul 11 2011 | 3:37 pm
      Is it possible to get the name of the patcher the level above the one the js is in? I tried, but it was having none of it... Cheers Roger
    • Jul 11 2011 | 4:46 pm
      I think it should be
    • Jul 13 2011 | 2:36 pm
      Of course! Thanks- I really should learn js one day... cheers Roger