<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>I wrote one called [folder_list] in "hcs", but I think there are others too.</div><div><br></div><div>.hc</div><br><div><div>On Oct 4, 2009, at 2:52 PM, James Dunn wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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. &nbsp;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 -&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> "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 -&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></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br class="khtml-block-placeholder"></div><div>----------------------------------------------------------------------------</div><div><br></div><div>"[W]e have invented the technology to eliminate scarcity, but we are deliberately throwing it away to benefit those who profit from scarcity."&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;-John Gilmore</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>