On 6/14/06, <b class="gmail_sendername">Tim Blechmann</b> &lt;<a href="mailto:TimBlechmann@gmx.net">TimBlechmann@gmx.net</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
would this python one-liner be an option for you?<br><br>import random, glob<br><br>def choose(path):<br>&nbsp;&nbsp;&nbsp;&nbsp;return random.choice(glob.glob(path+&quot;/*.mov&quot;))</blockquote><div><br>
I hard coded the path&nbsp; so it looks like this:<br>
<br>
import random, glob<br>
<br>
def randy():<br>
&nbsp;&nbsp;&nbsp; return random.choice(glob.glob(&quot;E:/pd_merge/past/*.mov&quot;))<br>
<br>
The only problem is the output from the py object is<br>
<br>
print: symbol E:/pd_merge/past\\\\5.4.2006.9.49.4.mov<br>
<br>
What's up with the extra \\\\ ?&nbsp; Getting this working could solve a huge headache on Windows.<br>
</div><br>
Thanks<br>
cgc<br></div>