<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>[stat] just returns info about one file.  You can get a listing of files [folder_list] based on a glob pattern like *.mov.  I am planning on changing it to [file/match] that will act like [qlist] in that you bang to get a new filename, then it'll bang when end of the file listing is reached.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>.hc</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>On Jun 14, 2006, at 8:27 AM, chris clepper wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Is there a way to get a random file of a certain type (like .mov) from a specific directory using your objects?<BR><BR>cgc<BR><BR><DIV><SPAN class="gmail_quote">On 6/14/06, <B class="gmail_sendername">Hans-Christoph Steiner </B> &lt;<A href="mailto:hans@eds.org">hans@eds.org</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><BR><A href="http://at.or.at/hans/pd/objects.html"> http://at.or.at/hans/pd/objects.html</A><BR><BR>Another libc port: stat. It lets you get all sorts of data from a<BR>file. Quite handy for a number of things, like testing what kind of<BR>file something is, or get the time of the last access, status change, <BR>or modification. Should work on all platforms.<BR><BR>Also included is [file_type] object which is written in Pd and uses<BR>[stat].  It tells you what kind of file something is (file, folder,<BR>character, block, fifo, etc). <BR><BR>Of course, it'll be in the next Pd-extended test release.<BR><BR>.hc<BR><BR>------------------------------------------------------------------------<BR><BR>Computer science is no more related to the computer than astronomy is <BR>related to the telescope.      -Edsger Dykstra<BR><BR><BR><BR>_______________________________________________<BR>PD-announce mailing list<BR><A href="mailto:PD-announce@iem.at">PD-announce@iem.at</A><BR><A href="http://lists.puredata.info/listinfo/pd-announce"> http://lists.puredata.info/listinfo/pd-announce</A><BR><BR>_______________________________________________<BR><A href="mailto:PD-list@iem.at">PD-list@iem.at</A> mailing list<BR>UNSUBSCRIBE and account-management -&gt; <A href="http://lists.puredata.info/listinfo/pd-list"> http://lists.puredata.info/listinfo/pd-list</A><BR></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; "><DIV><BR></DIV><DIV>------------------------------------------------------------------------</DIV><DIV><BR></DIV><DIV>I have the audacity to believe that peoples everywhere can have three meals a day for their bodies, education and culture for their minds, and dignity, equality and freedom for their spirits.     <SPAN class="Apple-converted-space"> </SPAN>- Martin Luther King, Jr.</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>