On 29/05/17 23:30, Peter P. wrote:
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.
pd has a -send command line argument that is useful for this kind of thing. Using pdsend from a startup script is prone to a race condition (how do you know when pd is ready to recieve the message?).