[PD] dir access

ben at ekran.org ben at ekran.org
Fri Aug 22 14:29:00 CEST 2003


Hmmmmmm agreed, a "folder" would be nice... I'd guess its largely a
nighmare to do it in C/Flext that works on all platforms, mind you it
seems the windows users are most interested in this... perhaps a non-gui
version of Yves playlist?

Ben

> hi Ben,
>
> this is a bit cryptic, but hopefully works:
>
> query set dir [tk_chooseDirectory] .: if .($dir != "" && ![catch
> .(glob [file join $dir *.txt].) res].) .(set res.)
>
> Send this to a [tot .] -> [route bang] and read from the right
> outlet of the route.
>
> The trickier problem is, how to deal with large lists of filenames --
> there is a limit imposed by the pdgui->pd connection.  I think
> one way would be to metro-out the filenames one-by-one?  Or store
> them in a temporary file to be read into a [textfile]?
>
> Seems like it is a hard time without a [folder] clone...
>
> Krzysztof
>
> B. Bogart wrote:
> ...
>> PS: Krzysztof, why does the first list item returned in this case have
>> a full path and others have relative paths?
>
>
> _______________________________________________
> PD-list mailing list
> PD-list at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-list







More information about the Pd-list mailing list