<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I'm not really against "-args", though, I'm just trying to look
      for something less ugly. It definitely is the most foolproof
      solution so far.</p>
    <p>Anway, I think it should only apply to a *single* patch. This
      raises the question how to deal with patches passed as "regular"
      arguments...</p>
    <p>You say we shouldn't do the following:</p>
    <p>pd -args "1 2 3" patch1.pd -args "foo bar" patch2.pd</p>
    <p>So only allow it for patches opened with "-open"?<br>
    </p>
    <p>pd -args "1 2 3" -open patch1.pd -args "foo bar" -open patch2.pd</p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 09.06.2020 18:30, Christof Ressi
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:106756cd-18e3-8aae-8496-18d707fbe9fb@christofressi.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p> </p>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">yes, sure.</pre>
      </blockquote>
      Your last e-mail indicated otherwise. You showed how you can't
      open "mypatch.pd" as "mypatch", but this was not what Mario was
      asking.<br>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">but what's the point of this discussion?</pre>
      </blockquote>
      I just answered a question and you said my answer was wrong.<br>
      <p> </p>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">how is being able to open a file with an arbitrary name (including
arbitrary extensions) related to passing args to Pd?</pre>
      </blockquote>
      I've never claimed it was. <br>
      <p> </p>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">it seems that all ideas just fail the
"foolproof test".</pre>
      </blockquote>
      True.
      <p>On the other hand, let's look at this:</p>
      <p>pd "mypatch.pd 1 2 3"</p>
      <p>What if we simply treat ".pd " as the delimiter? How many
        people realistically have this character sequence in a directory
        name? I know it's not 100% foolproof, but maybe it's good
        enough... Just sayin'</p>
      <p>Christof<br>
      </p>
      <div class="moz-cite-prefix">On 09.06.2020 17:50, IOhannes m
        zmölnig wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:cb552ed2-0132-6357-4074-7237e9e53a55@iem.at">
        <pre class="moz-quote-pre" wrap="">On 2020-06-09 17:34, Christof Ressi wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">Just to be clear: we're talking about opening a patch file that does not
have the .pd extension, e.g. "mypatch.txt" or simply "mypatch". This
certainly works (at least here on Windows.)
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">yes, sure. that's what i wrote in my other mail.


but what's the point of this discussion?
how is being able to open a file with an arbitrary name (including
arbitrary extensions) related to passing args to Pd?

i think the much more relevant question in the context of the collapsed
filename+args opening ("pd -open 'foo.pd: 12'") is, whether we can load
patches with spaces in them.
and the answer is of course: yes we can.

so what do i get in this case?:
```
$ ls -1
'foo 42'
foo.pd
'foo.pd: 12'
$ pd -open "foo.pd: 12"
```

while it may seem to be super-elegant to cram as much info into the
shortest possible cmdline, it seems that all ideas just fail the
"foolproof test".
the only character that is forbidden on all systems is "/".
we probably don't want to use *that* tough.

so maybe we should concentrate on other ideas to pass arguments per patch.

gfmards
IOhannes

</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at" moz-do-not-send="true">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list" moz-do-not-send="true">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
  </body>
</html>