directory walking sorted; file listing modification

Klaus Major klaus at major-k.de
Wed Dec 3 16:16:53 EST 2003


Hi Bob,

just add this line ;-)

> 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

filter gHierList with "*.pic"

>   sort gHierList
>   put gHierList into field 1
>   put number of lines of fld 1
>   set lockCursor to false
> end mouseUp
>
> on directoryWalk whatFolder
> ...
>
> cheersbob

Hope that helps...


Regards

Klaus Major
klaus at major-k.de
www.major-k.de


P.S.
A good one i saw on a baseball cap some time ago:

"Instant idiot.
Just add alcohol!"

:-D



More information about the use-livecode mailing list