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 [getdir].
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.
(2cents) P