<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Ah, that's an interesting idea. Unfortunately, your proposed
syntax wouldn't work because any arguments after the flags are
treated as patch files, so in your case Pd would try to open
"mypatch.pd" and "23".<br>
</p>
<p>Top level patches usually don't use creation arguments because it
is not really possible to provide them with the current opening
mechanism. But I totally see how this could be useful. It would
need some surgery in Pd, though. Feel free to open an issue on
GitHub!<br>
</p>
<p>In the meantime, you can have a wrapper patch with a receiver
which dynamically creates the actual patch with the desired
creation arguments.</p>
<p>Christof<br>
</p>
<div class="moz-cite-prefix">On 08.06.2020 15:23, Mario Buoninfante
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHs=M8T_YSHKjUCT58CqyA8H1gpZKpoDqNtOcV=knRCkgKDDTg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi Jack,</div>
<div><br>
</div>
<div>Thanks for your help. That's great but is not exactly what
I'm looking for.</div>
<div>In my previous email I missed an important bit, what I'd
like to do is pass an arg to a specific patch.</div>
<div>Something like</div>
<div><br>
</div>
<div>> pd mypatch.pd 23</div>
<div><br>
</div>
<div>and then in "mypatch" I have [$1] that is now 23.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Mario<br>
</div>
<br>
</div>
<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>