<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I was hopeful to get [file which] to give me the path of [media/] but no luck.</blockquote><div> </div><div> It should allow you to get the path of [media/mysound.wav] though.<br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 11 janv. 2022 à 14:41, Pierre Alexandre Tremblay <<a href="mailto:tremblap@gmail.com">tremblap@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks Roman for the fabulous answer.<br>
<br>
> If 'media' lies near the patch<br>
<br>
It doesn’t actually. It seems to work from wherever I am on my machine.<br>
<br>
> TLDR: Unlike many other file accessing objects like [soundfile],<br>
> [reasf~], [textfile], etc. [file] doesn't use search paths¹.<br>
<br>
With that footnote, I was hopeful to get [file which] to give me the path of [media/] but no luck.<br>
<br>
I’ve also tried to find a way to get [dir] from pdcontrol… I wondered if there was a way to get the path to a given object help, like in SuperCollider<br>
<br>
FluidBufAmpGate.class.filenameSymbol<br>
<br>
Anyway. Good to know that it is not me. Thanks again for the reply._______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>