Here's my one-line solution:
filter gHierList with "raw*.pic"This relies on the file names starting with "raw" and ending with ".pic" but having any characters in the middle which may not be appropriate. Check out the other options for the filter command until you get exactly what you need. It is very powerful and very fast.
Cheers, Sarah [EMAIL PROTECTED] http://www.troz.net/Rev/
On 4 Dec 2003, at 7:53 am, Bob Hartley wrote:
Hi all
I found this script to list files in a director and walk down the folders. I also manage to list the output in a box. :-)
How can this directory walker be modified to only list the files comtaining raw01.pic, raw02.pic and raw03.pic?
Then all I need to do is link the final box to the target directory. But that is later.
global gHierList on mouseUp put empty into gHierList put empty into field 1 answer folder "Pick a folder you want to walk:" if it is empty then exit mouseUp set lockCursor to true set cursor to watch directoryWalk it sort gHierList put gHierList into field 1 put number of lines of fld 1 set lockCursor to false end mouseUp
on directoryWalk whatFolder set the defaultFolder to whatFolder put the files into temp repeat for each line x in temp put whatFolder & "/" & x & return after gHierList end repeat put the folders into tDirList repeat with x = 2 to the number of lines of tDirList directoryWalk (whatFolder & "/" & (line x of tDirList)) end repeat end directoryWalk
cheersbob
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
