Hi all,
i think i just need an idea or a function's name, respectively. I want the user to select a folder with the StandardGetFolder Dialog, that's easy and working but than i want my script to get all files in that folder which have a specific name, say /^result\d{3}/.
I'm sure this is easy done but i don't know how 8-) Is there a function which returns a list of specific files in a given directory? I checked the MacPerl book and the file related pods quickly but found nothing.
Any ideas will be apreciated. Martin
--
"355/113 -- Not the famous irrational number PI, but an incredible simulation!"
To get a list of filenames in a specific folder, opendir(), readdir() and closedir() should do what you want. You can do your file filtering with a pattern match. You might also want to use the filetest operators like -f or -d. Do a lookup in Shuck for details (a lookup of readdir will give you an example).
Regards, Thomas