[PD] Pass arg to Pd via terminal

Christof Ressi info at christofressi.com
Mon Jun 8 17:49:43 CEST 2020


The thing is that we can load more than one patch. I think something 
like this could work:

pd patch1.pd -a "1 2 3" patch2.pd -a "foo bar"

But we could move the bikeshedding to GitHub ;-) 
https://github.com/pure-data/pure-data/issues/1058

Christof

On 08.06.2020 17:09, Dan Wilcox wrote:
> Or Pd can recognize the "--" flag which disables command line parsing 
> hereafter. I looked into this as it was helpful for debugging the 
> sound file stuff and found it was an easy change to make. I just never 
> formalized it for a PR etc.
>
>> On Jun 8, 2020, at 5:00 PM, pd-list-request at lists.iem.at 
>> <mailto:pd-list-request at lists.iem.at> wrote:
>>
>> Date: Mon, 8 Jun 2020 15:12:34 +0100
>> From: Sebastian Lexer <s.lexer at incalcando.com 
>> <mailto:s.lexer at incalcando.com>>
>> To: Pd-List <pd-list at lists.iem.at <mailto:pd-list at lists.iem.at>>, 
>> Christof Ressi
>> <info at christofressi.com <mailto:info at christofressi.com>>
>> Subject: Re: [PD] Pass arg to Pd via terminal
>> Message-ID: <5ef354dd-97bc-4cbc-bc3b-a1df8c93fcae at Spark>
>> Content-Type: text/plain; charset="utf-8"
>>
>> I like this idea very much! Could there be an argument flag? e.g.
>>
>> $ pd mypatch.pd -a 23
>>
>> 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.
>
> --------
> Dan Wilcox
> @danomatika <http://twitter.com/danomatika>
> danomatika.com <http://danomatika.com>
> robotcowboy.com <http://robotcowboy.com>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20200608/ef8899b4/attachment-0001.html>


More information about the Pd-list mailing list