[PD] Execute command from Pd
peterparker at fastmail.com
Tue May 30 00:30:50 CEST 2017
* Roman Haefeli <reduzent at gmail.com> [2017-05-29 22:58]:
> On Mon, 2017-05-29 at 13:15 -0600, Dan Wilcox wrote:
> > Seconded. IMO something like [getdir] should be included with
> > vanilla, perhaps as part of get canvas info functionality.
> I can't think of any case where relative to Pd's start location is
> useful (on macOS it seems to always be /, no matter where you double-
> clicked a patch). On the other hand, I can think of quite a few cases
> where relative to patch would be desired. [shell] is only one example.
> But also when opening patches by message to Pd, it would make much more
> sense to load them relative to the current patch (though that might not
> be an advertised feature of Pd).
> If the notion that relative to patch is superior to relative to Pd
> would find wide adoption, we often wouldn't even need something like
> But I agree, that something like [getdir] in vanilla would be handy.
In cases where pd is started from the command line one could write a
wrapper script that gets the directory of the patch file that would have
to be passed to pd as argument. The script could then relay this info to
pd using pdsend probably.
More information about the Pd-list