File lists

Richmond richmondmathewson at
Sun Jul 11 17:18:23 EDT 2010

On 07/11/2010 11:53 PM, J. Landman Gay wrote:
> I need to get a list files in a folder and display it in a card field. 
> The function "the files" doesn't detect OS X "bundle"-type files such 
> as rtfd and Pages documents. Before I reinvent the wheel, does anyone 
> have a script for getting a full file list that includes these special 
> OS X files?
> And secondly, since "answer file" does include bundle-type files, 
> shouldn't "the files" detect them too?
> Grumble.

You may well grumble . . .  :)

I just tried this:

put the folders into fld "fFILES"

pointing at the default folder

Revolution is listed as ''

all the folder folders (cough) don't have that suffix;
so all you need to do now is set up a script to list
files and append all the folders that end with the suffix .app
to it.

More information about the Use-livecode mailing list