That reminds me of something - is there something like this to get the number of files in a directory?<br><br>thanks<br><br>James<br><br><div class="gmail_quote">2009/10/4 Hans-Christoph Steiner <span dir="ltr"><<a href="mailto:hans@at.or.at">hans@at.or.at</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
[getdir] may be what you want. Its in 'ggee' and included in Pd-extended.<br>
<br>
.hc<div><div></div><div class="h5"><br>
<br>
On Oct 4, 2009, at 1:45 PM, Orm Finnendahl wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
sorry, this is probably trivial, but I can't seem to find the<br>
solution: I use a self written external in a pd patch, which on setup<br>
loads initialization data from subdirectories with relative pathnames<br>
to the directory the patch lives in.<br>
<br>
Loading the pd patch from a terminal within the patches' directory<br>
leads to pd having this directory as the current directory with all<br>
relative paths working from there. Loading the patch with<br>
double-clicking it will lead to pd starting from it's default<br>
directory and the relative pathnames don't work from within the<br>
external's setup routine.<br>
<br>
How is it possible to determine and then set pd's current/default<br>
directory to the path, the external's root canvas is located at from<br>
within the external?<br>
<br>
--<br>
Orm<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote>
<br>
<br>
<br></div></div>
----------------------------------------------------------------------------<br>
<br>
"Making boring techno music is really easy with modern tools," he<br>
says, "but with live coding, boring techno is much harder." - Chris McCormick<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br>