<p dir="ltr">Except that in this case patch_name precedes  canvasinfo...</p>
<div class="gmail_quote">On Mar 4, 2014 3:01 PM, &quot;Jonathan Wilkes&quot; &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>On 03/04/2014 01:15 PM, Ivica Bukvic
      wrote:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">...and [patch_name] external (again pd-l2ork only)
        that outputs the filepath out of the left outlet and the patch
        filename out of the right outlet.</p>
    </blockquote>
    <br>
    There&#39;s also<br>
    <br>
    [patchname $1(<br>
    |<br>
    [duplicate_effort]<br>
    <br>
    Just fill $1 with the name of the object you want to create, and
    [duplicate_effort] will automatically compile another class with
    that name and with the functionality you want.<br>
    <br>
    Currently [duplicate_effort] supports the following methods:<br>
    <br>
    patchname<br>
    dollarargs<br>
    abs~<br>
    pow~<br>
    bandlimited_grabbag<br>
    arraysize<br>
    mousecoords<br>
    count<br>
    string<br>
    duplicate_effort<br>
    <br>
    Each class created is guaranteed to be unique so you can use it to
    create private keys.  You can also give it an extra float argument
    to specify help patch quality.  (All values default to zero.)<br>
    <br>
    To download a copy, start a repo in github and code up another
    version of it.<br>
    <br>
    -Jonathan<br>
    <br>
    <blockquote type="cite">
      <div class="gmail_quote">On Mar 4, 2014 12:47 PM, &quot;Jonathan
        Wilkes&quot; &lt;<a href="mailto:jancsika@yahoo.com" target="_blank">jancsika@yahoo.com</a>&gt;
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
          On 03/04/2014 03:00 AM, Kaj Ailomaa wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <br>
            On Tue, Mar 4, 2014, at 02:54 AM, Chris McCormick wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              Hello,<br>
              <br>
              On 03/03/14 21:55, Kaj Ailomaa wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Hi. I&#39;ve been googling a bit and looking through the
                library of objects<br>
                that comes with pd-extended, but can&#39;t seem to find a
                way to get the<br>
                name of the patch from within the patch. Anyone know of
                a nice method to<br>
                do this?<br>
              </blockquote>
              I would use [namecanvas] for this. For example you could
              have an object<br>
              like [namecanvas $0-mypatch] and then you can send
              messages to the patch<br>
              using e.g. [s $0-mypatch].<br>
              <br>
            </blockquote>
            Thanks, but this won&#39;t work for me, as the name has to be
            the actual<br>
            patch name.<br>
            <br>
            I&#39;ve understood that there might be a fix in the svn version
            of<br>
            [canvasname], apart of iemguts, which would allow getting
            the name of<br>
            the top level patch.<br>
            <br>
            The reason I had for this is I wanted to have uniquely named
            patches<br>
            that have a common save mechanism, which looks up the
            savefile based on<br>
            the unique patch name.<br>
            I was always going to create these uniquely named patches in
            another top<br>
            level patch, so I can get around this problems by adding an
            argument for<br>
            the patch, which is the same as the patchname, and let the
            save<br>
            mechanism look up the filename that way.<br>
            <br>
            I initially would have wanted the uniquely named patch to be
            able to be<br>
            opened as is, but that&#39;s not a major problem.<br>
          </blockquote>
          <br>
          Currently I think the only way to do this is
          [filename(---[canvasinfo], which is only in Pd-l2ork.<br>
          <br>
          -Jonathan<br>
          <br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <br>
            _______________________________________________<br>
            <a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
            UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
            <br>
            <br>
          </blockquote>
          <br>
          <br>
          _______________________________________________<br>
          <a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
          UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>