<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">Em ter, 15 de jan de 2019 às 13:56, Roman Haefeli <<a href="mailto:reduzent@gmail.com">reduzent@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 2019-01-15 at 13:28 -0200, Alexandre Torres Porres wrote:<br>
> <br>
> <br>
> Em ter, 15 de jan de 2019 às 12:30, Roman Haefeli <<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a><br>
> > escreveu:<br>
> > On Tue, 2019-01-15 at 13:35 +0000, Mario Buoninfante wrote:<br>
> > <br>
> > > Would it be possible to use something like the following<br>
> > > <br>
> > > [symbol ./(<br>
> > > |<br>
> > > |<br>
> > > [openfolder]<br>
> > > <br>
> > > to open the dialog window in the current patch folder?<br>
> > > <br>
> > > This syntax works when you save or load files (ie with<br>
> > [textfile]),<br>
> > > but doesn't seem to work with [openpanel] and [savepanel].<br>
> > <br>
> > The help file says that you can use [symbol <some path>( to open a<br>
> > specific directory. However, when you give a relative path, it is<br>
> > relative to Pd's start location, which is pretty useless. <br>
> <br>
> is it? cause it seems to me it's just not working at all!<br>
<br>
I can currently only test on Linux, but yes it works. However, when<br>
banging [openpanel] initially, it doesn't open in Pd's start location,<br>
but in its "Home" which happens to be ~/Documents/Pd in my version of<br>
Pd (0.49.1).</blockquote><div><br></div><div>that's actually 0.49-0, right? 49.1 is only for mac</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I don't know what the start location is on platforms where you double-<br>
click an icon to launch the application. But you can easily figure that<br>
out by sending [symbol .( to [openpanel]. </blockquote><div><br></div><div>Sending a "symbol ." here in the latest macOS and Pd opens the root of HD </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From there, relative paths should work. I guess, they do so also on macOS and on Windows once you<br>
know where your starting point is. <br></blockquote><div><br></div><div>So, a bang opens ~/Documents/Pd, but no relative paths work from there!</div><div><br></div><div>So it seems like a bug for mac, and also, we want the behaviour to be relative to the patch's path, right? At least when sending it "symbol ./"</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
What I was trying to say  in my previous post is that relative paths<br>
are pretty useless when they must be relative to this arbitrary<br>
starting point, since the patch has no notion of that path. Most often<br>
you want [openpanel] to show some directory relative to the main patch<br>
of your project. For me, relative to patch would make much more sense.<br>
I don't see any meaningful use case with the current implementation of<br>
'relative to Pd's start location'. <br></blockquote><div><br></div><div>agreed</div></div></div>