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">&lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;</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 &#39;ggee&#39; 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&#39;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&#39; 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&#39;s default<br>
directory and the relative pathnames don&#39;t work from within the<br>
external&#39;s setup routine.<br>
<br>
How is it possible to determine and then set pd&#39;s current/default<br>
directory to the path, the external&#39;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 -&gt; <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>
&quot;Making boring techno music is really easy with modern tools,&quot; he<br>
says, &quot;but with live coding, boring techno is much harder.&quot; - 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 -&gt; <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>