<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">I like this idea very much! Could there be an argument flag? e.g.
<div dir="auto"><br /></div>
<div dir="auto">$ <span style="color: var(--textColor); background-color: var(--backgroundColor);">pd mypatch.pd -a 23</span></div>
<div dir="auto"><span style="color: var(--textColor); background-color: var(--backgroundColor);"><br /></span></div>
<div dir="auto">Basically like terminal commands in sox, where the flags apply to import and output files dependent on the placement, in PD it could work as flags for PD before and in between the filename(s) to be opened.</div>
<div dir="auto"><br /></div>
<div dir="auto">Sebastian</div>
</div>
</div>
<div name="messageReplySection">On 8 Jun 2020, 14:54 +0100, Christof Ressi <info@christofressi.com>, wrote:<br />
<blockquote type="cite" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<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" class="spark_quote" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">
<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>
_______________________________________________<br />
Pd-list@lists.iem.at mailing list<br />
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list<br /></blockquote>
</div>
</body>
</html>