[PD] [file]: paths not relative to patch
Christof Ressi
info at christofressi.com
Sat Jan 8 19:11:43 CET 2022
Then let's go with [file patchdir] for now. I don't care too much about
the name :-)
A bang would unsurprisingly output the patch directory.
You can also send a path name as a symbol. If the path is relative,
[file patchdir] will resolve it to the patch directory. Absolute paths
are passed unchanged.
Should we also provide a creation argument and float message for the
parent level? For example, [bang( -> [file patchdir 1] resp. [1( ->
[file patchdir] would output the parent patch directory, etc. This would
make [pdcontrol]'s [dir( method entirely obsolete.
Christof
On 08.01.2022 18:46, IOhannes m zmölnig wrote:
> Am 8. Jänner 2022 18:31:43 MEZ schrieb Christof Ressi <info at christofressi.com>:
>> Both would essentially provide the same things. IMO, [file resolve]
>> would be more intuitive because after all that's what people likely want
>> to do when they ask for the current patch directory.
>>
>
> I dunno.
> iirc, [file which] was originally named [file resolve] but I started a hearty dislike for this name, as I think its rather confusing.
>
>
> mfg.sfg.jfd
> IOhannes
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
More information about the Pd-list
mailing list