Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of symbol names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
Thanks, -Mike
ciao
if you are on linux, you can use the shell-external and send a [ls(-msg to it. to be honest, i would appreciate a way (external) that works crossplatform, too, rather than the [shell]-solution.
lg roman
Mike Wozniewski wrote:
Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of
symbol
names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
Thanks, -Mike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Hallo, Roman Haefeli hat gesagt: // Roman Haefeli wrote:
if you are on linux, you can use the shell-external and send a [ls(-msg to it. to be honest, i would appreciate a way (external) that works crossplatform, too, rather than the [shell]-solution.
It's also possible (again) to use the pyext external (or GridFlow-Ruby) to write a little script that would be platform-independent. Another possibility could be to use the graphical [playlist] external, depending on what you want to do with the list: cvs/externals/unauthorized/playlist/
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
I made an absraction with TOT (I think that is what it is called) called folderspiller. It spills the contents of a folder that fit wildcards. Should work on all platforms as long as you have the TOT external.
Try it at https://www.puredata.info/Members/mrtof/
Tom
On 6/23/05, Roman Haefeli reduzierer@yahoo.de wrote:
ciao
if you are on linux, you can use the shell-external and send a [ls(-msg to it. to be honest, i would appreciate a way (external) that works crossplatform, too, rather than the [shell]-solution.
lg roman
Mike Wozniewski wrote:
Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of
symbol
names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
Thanks, -Mike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thomas,
I replaced my implimentation of the same thing with python because TOT was truncating tcl commands and killing PD gui commands. Mr Czaja said that TOT should not be used for scripting! I heed this advice. Do not use TOT for listing files, you'll eventually regret it.
B.
Thomas Ouellet Fredericks wrote:
I made an absraction with TOT (I think that is what it is called) called folderspiller. It spills the contents of a folder that fit wildcards. Should work on all platforms as long as you have the TOT external.
Try it at https://www.puredata.info/Members/mrtof/
Tom
On 6/23/05, Roman Haefeli reduzierer@yahoo.de wrote:
ciao
if you are on linux, you can use the shell-external and send a [ls(-msg to it. to be honest, i would appreciate a way (external) that works crossplatform, too, rather than the [shell]-solution.
lg roman
Mike Wozniewski wrote:
Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of
symbol
names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
Thanks, -Mike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
yves' playlist external...it works on linux and osx...and does pretty much everything mike asked for
AND it has a help file :)
I initially experienced problems with my first approches, but by requesting one file at the time, the "folderspilling" works fine but takes a little time.
Tom
On 6/23/05, B. Bogart ben@ekran.org wrote:
Thomas,
I replaced my implimentation of the same thing with python because TOT was truncating tcl commands and killing PD gui commands. Mr Czaja said that TOT should not be used for scripting! I heed this advice. Do not use TOT for listing files, you'll eventually regret it.
B.
Thomas Ouellet Fredericks wrote:
I made an absraction with TOT (I think that is what it is called) called folderspiller. It spills the contents of a folder that fit wildcards. Should work on all platforms as long as you have the TOT external.
Try it at https://www.puredata.info/Members/mrtof/
Tom
On 6/23/05, Roman Haefeli reduzierer@yahoo.de wrote:
ciao
if you are on linux, you can use the shell-external and send a [ls(-msg to it. to be honest, i would appreciate a way (external) that works crossplatform, too, rather than the [shell]-solution.
lg roman
Mike Wozniewski wrote:
Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of
symbol
names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
Thanks, -Mike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
B. Bogart wrote: ...
I replaced my implimentation of the same thing with python because TOT was truncating tcl commands and killing PD gui commands. Mr Czaja said that TOT should not be used for scripting! I heed this advice. Do not use TOT for listing files, you'll eventually regret it.
right, the reason is that tot uses the regular pd/pd-gui connection, which is not robust, with or without tot. However, even with a dedicated connection established, tot still would be a poor scripting tool. It was designed for doing weird things with pd-gui, and it would better stay as such.
In a proper scripting tool, the main thread of an interpreter should run in the main thread of the pd process. For tcl scripting, there is the plustot library in cvs, which accepts things like [+tot -dir $in glob *.pd] -> [+tot +out] (still work in progress, though...)
k
btw, Ben, how do you pronounce mr czaja?
morning,
I actually wrote an external for the basics of this ([readdir]) -- it works on linux and allegedly on OSX and win32... source and some binaries are available at (and/or linked to from):
http://www.ling.uni-potsdam.de/~moocow/projects/pd
... you'd have to handle the actual glob-matching yourself, though, but that should be easily done with e.g. zexy's [l2s]...
marmosets, Bryan
Mike Wozniewski wrote:
Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of
symbol
names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
On Thu, Jun 23, 2005 at 05:25:12PM +0200, Bryan Jurish wrote:
morning,
I actually wrote an external for the basics of this ([readdir]) -- it works on linux and allegedly on OSX and win32... source and some binaries are available at (and/or linked to from):
it seems there are many approaches to this problem as there are users... i'll add my solution to the heap, dd.wid and q.wid for toxy: http://whats-your.name/pd/gui/q.gif
... you'd have to handle the actual glob-matching
re:glob, you notice its a syscall? man glob, at least on UNIX(esque) platforms.. i think it would be cool to be able to access these system calls via normal pd messages, without weirdo externals or scripting-language extensions.
yourself, though, but that should be easily done with e.g. zexy's [l2s]...
marmosets, Bryan
Mike Wozniewski wrote:
Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of
symbol
names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Thu, 23 Jun 2005, Roman Haefeli wrote:
if you are on linux, you can use the shell-external and send a [ls(-msg to it. to be honest, i would appreciate a way (external) that works crossplatform, too, rather than the [shell]-solution.
All it takes for crossplatform operation is the following line for MS-DOS users:
ECHO DIR > C:\USR\BIN\LS.BAT
Or else here's the source code (in Ruby) for a portable ls you can use the following external (written in Ruby):
GridFlow::FObject.subclass("ls",1,1) { def _0_symbol(s) send_out 0,:list,*Dir[s.to_s].map{|x|x.intern} end }
Which you can add in ~/.gridflow_startup to override the slightly less powerful [ls] external bundled with GridFlow. Note that the double-star wildcard recurses subdirectories.
Here's Carmen's GridFlow-for-Windows :
http://whats-your.name/bin/pd-devel0392+gridflow.rar
,-o--------o--------o--------o-. ,---. irc.freenode.net #dataflow |
| The Diagram is the Program tm| | ,-o-------------o--------------o-.
-o------------o-------------o-' | | Mathieu Bouchard (Montréal QC) | | téléphone:+1.514.383.3801
---' `-o-- http://artengine.ca/matju -'
Hey,
using pyext I made an abstraction called [dirlist] that does this.
Its not in the abstraction CVS... but it is part of pixelTANGO. Sorry no help-file yet...
B.
Mike Wozniewski wrote:
Hi,
Is there an external for reading the contents of a directory/folder on the file system? Preferably, this external would output a list of symbol names... and allow you to specify a set of extensions (eg, it would return only .jpg .gif .png etc).
Thanks, -Mike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list