At 07:00 PM 20/08/2003, lists@martinmalm.com wrote:
Is there any external that can search a directory and return all the filenames in it ? I have been looking, but I can't find one. I'm on win XP.
Try and use the openpanel object. Might just be what you are looking for.
Luke
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
At 07:00 PM 20/08/2003, lists@martinmalm.com wrote:
Is there any external that can search a directory and return all the filenames in it ? I have been looking, but I can't find one. I'm on win XP.
Try and use the openpanel object. Might just be what you are looking for.
Luke
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like to see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it sure would be handy!
To make this issue even more complex: the .NET framework now provides an API to zip/compress, send mail, edit and resize images, and even return MP3 file attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
Hello all !
I totaly agree with dave, it would be a very powererful to be able to use this kind of features under windows to.
Not wanting to hardcode filenames etc. into my patches the workaround right now seems to be to use .txt files in the directories and msgfile to extract the info.
Does anyone have any other ideas ?
regards /
Martin
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
- it's easy on linux/PD (something about shell commands)
- it's impossible on win/PD
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like to see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it sure would be handy!
To make this issue even more complex: the .NET framework now provides an API to zip/compress, send mail, edit and resize images, and even return MP3 file attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Le 20 Août 2003 06:44, lists@martinmalm.com a écrit :
Does anyone have any other ideas ?
It might be possible to compile the "shell" external for Windows with Cygwin installed.
Marc
TOT will probably do this, as you can get a file listing (and copy delete etc.. ) very easily in tcl...
glob *
file rename file delete file copy
etc..
Try this before writing something!
Ben ----- Original Message ----- From: "David Sabine" dave@davesabine.com To: lists@martinmalm.com; "'Luke Yelavich'" lukethemuso@ozemail.com.au Cc: pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 6:35 AM Subject: RE: [PD] dir access
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
- it's easy on linux/PD (something about shell commands)
- it's impossible on win/PD
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like
to
see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it
sure
would be handy!
To make this issue even more complex: the .NET framework now provides an
API
to zip/compress, send mail, edit and resize images, and even return MP3
file
attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hi Ben and everyone else !
TOT sounds like a good solution, but the only problem is that I have no idea of what it is and how to use it in a patch. Could you point me in the right direction ?
Thanks for all help :)
regards /
Martin
TOT will probably do this, as you can get a file listing (and copy delete etc.. ) very easily in tcl...
glob *
file rename file delete file copy
etc..
Try this before writing something!
Ben ----- Original Message ----- From: "David Sabine" dave@davesabine.com To: lists@martinmalm.com; "'Luke Yelavich'" lukethemuso@ozemail.com.au Cc: pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 6:35 AM Subject: RE: [PD] dir access
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
- it's easy on linux/PD (something about shell commands)
- it's impossible on win/PD
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like
to
see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it
sure
would be handy!
To make this issue even more complex: the .NET framework now provides an
API
to zip/compress, send mail, edit and resize images, and even return MP3
file
attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
http://suita.chopin.edu.pl/~czaja/miXed/externs/toys.html
lists@martinmalm.com wrote:
Hi Ben and everyone else !
TOT sounds like a good solution, but the only problem is that I have no idea of what it is and how to use it in a patch. Could you point me in the right direction ?
Thanks for all help :)
regards /
Martin
TOT will probably do this, as you can get a file listing (and copy delete etc.. ) very easily in tcl...
glob *
file rename file delete file copy
etc..
Try this before writing something!
Ben ----- Original Message ----- From: "David Sabine" dave@davesabine.com To: lists@martinmalm.com; "'Luke Yelavich'" lukethemuso@ozemail.com.au Cc: pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 6:35 AM Subject: RE: [PD] dir access
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
- it's easy on linux/PD (something about shell commands)
- it's impossible on win/PD
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like
to
see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it
sure
would be handy!
To make this issue even more complex: the .NET framework now provides an
API
to zip/compress, send mail, edit and resize images, and even return MP3
file
attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hey !
Thanks, this seems to be what I need ! Hope I can get it to work..
regards /
Martin
http://suita.chopin.edu.pl/~czaja/miXed/externs/toys.html
lists@martinmalm.com wrote:
Hi Ben and everyone else !
TOT sounds like a good solution, but the only problem is that I have no idea of what it is and how to use it in a patch. Could you point me in the right direction ?
Thanks for all help :)
regards /
Martin
TOT will probably do this, as you can get a file listing (and copy delete etc.. ) very easily in tcl...
glob *
file rename file delete file copy
etc..
Try this before writing something!
Ben ----- Original Message ----- From: "David Sabine" dave@davesabine.com To: lists@martinmalm.com; "'Luke Yelavich'" lukethemuso@ozemail.com.au Cc: pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 6:35 AM Subject: RE: [PD] dir access
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
- it's easy on linux/PD (something about shell commands)
- it's impossible on win/PD
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like
to
see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it
sure
would be handy!
To make this issue even more complex: the .NET framework now provides an
API
to zip/compress, send mail, edit and resize images, and even return MP3
file
attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- ____________________________________________________ independent u.s. drum'n'bass -- http://vitriolix.com
I could not download tot yesterday on the windows machine, let me know how it goes, perhaps if you have troubles I could wip up a tot abstraction for drectory listing.
Ben ----- Original Message ----- From: lists@martinmalm.com To: "Josh Steiner" josh@vitriolix.com Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 12:55 PM Subject: Re: [PD] dir access
Hey !
Thanks, this seems to be what I need ! Hope I can get it to work..
regards /
Martin
http://suita.chopin.edu.pl/~czaja/miXed/externs/toys.html
lists@martinmalm.com wrote:
Hi Ben and everyone else !
TOT sounds like a good solution, but the only problem is that I have no idea of what it is and how to use it in a patch. Could you point me in the right direction ?
Thanks for all help :)
regards /
Martin
TOT will probably do this, as you can get a file listing (and copy delete etc.. ) very easily in tcl...
glob *
file rename file delete file copy
etc..
Try this before writing something!
Ben ----- Original Message ----- From: "David Sabine" dave@davesabine.com To: lists@martinmalm.com; "'Luke Yelavich'" lukethemuso@ozemail.com.au Cc: pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 6:35 AM Subject: RE: [PD] dir access
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
- it's easy on linux/PD (something about shell commands)
- it's impossible on win/PD
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like
to
see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it
sure
would be handy!
To make this issue even more complex: the .NET framework now provides an
API
to zip/compress, send mail, edit and resize images, and even return
MP3
file
attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- ____________________________________________________ independent u.s. drum'n'bass -- http://vitriolix.com
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Here is a little example of listing txt files
Hope its useful.
Ben
PS: Krzysztof, why does the first list item returned in this case have a full path and others have relative paths?
----- Original Message ----- From: lists@martinmalm.com To: "Josh Steiner" josh@vitriolix.com Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 12:55 PM Subject: Re: [PD] dir access
Hey !
Thanks, this seems to be what I need ! Hope I can get it to work..
regards /
Martin
http://suita.chopin.edu.pl/~czaja/miXed/externs/toys.html
lists@martinmalm.com wrote:
Hi Ben and everyone else !
TOT sounds like a good solution, but the only problem is that I have no idea of what it is and how to use it in a patch. Could you point me in the right direction ?
Thanks for all help :)
regards /
Martin
TOT will probably do this, as you can get a file listing (and copy delete etc.. ) very easily in tcl...
glob *
file rename file delete file copy
etc..
Try this before writing something!
Ben ----- Original Message ----- From: "David Sabine" dave@davesabine.com To: lists@martinmalm.com; "'Luke Yelavich'" lukethemuso@ozemail.com.au Cc: pd-list@iem.kug.ac.at Sent: Wednesday, August 20, 2003 6:35 AM Subject: RE: [PD] dir access
Hello all,
I posted a similar questions months ago...the response from the developers seemed to be this:
- it's easy on linux/PD (something about shell commands)
- it's impossible on win/PD
Actually, it's not impossible, but somebody mentioned that performing this operation on Windows, being that the file system is handled so differently in each OS, would lead to spaghetti code that might eventually become very difficult to handle in PD.
Having said that, I think it would be a very powerful tool and would like
to
see some development in this area.
I work a lot in ASP (for 'web' stuff) and make frequent use of the "Scripting.FileSystemObject" in Visual Basic to return collections of folders, files, etc. Using this object one can also move, delete, rename and copy files on the fly. I don't know how this functionality could be provided within PD, because my knowledge of 'C' is so limited...but it
sure
would be handy!
To make this issue even more complex: the .NET framework now provides an
API
to zip/compress, send mail, edit and resize images, and even return
MP3
file
attributes (like name, composer, album, year released, bit rate, etc). I wonder if PD will even incorporate some of these tools?
Regards, Dave Sabine
-----Original Message----- From: pd-list-admin@iem.at [mailto:pd-list-admin@iem.at] On Behalf Of lists@martinmalm.com Sent: August 20, 2003 3:43 AM To: Luke Yelavich Cc: lists@martinmalm.com; pd-list@iem.kug.ac.at Subject: Re: [PD] dir access
Hi !
No, the openpanel is not what I'm looking for. I need to load an unknown number of images and movies into different buffers depending on their names and extensions.
I know that there is an object in MAX that can search a folder and return the contents as a list, so I was wondering if someone has created something like it for PD.
cheers /
Martin
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- ____________________________________________________ independent u.s. drum'n'bass -- http://vitriolix.com
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
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?
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@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list