Wouldn't it be a worthwhile addition to add filetype filtering for
the files() function in MC? On Mac it would match the file types and
on other systems it would match the extensions. I am sorry if this
was discussed earlier on the list, but I am new here.
put files of type ".doc" into docList
put files of type "TEXT" into txtList
put files(".h") into headerList
put files("MCRD","STAK") into stackList
Robert Brenstein
>Date: Wed, 14 Mar 2001 23:02:17 +0100
>To: [EMAIL PROTECTED]
>From: Robert Brenstein <[EMAIL PROTECTED]>
>Subject: Re: fetching file list
>
>Thanks. That clarifies the issue for me. Since this is a Mac-only
>function, I have no problem using an external. Cleaner code and
>probably faster response.
>
>Robert
>
>>I have filtered a file list by file type using the AppleScript
>>function in the Externals collection, which can be downloaded from
>>
>>http://www.xworlds.com/metacard/
>>
>>As far as I am aware, there is no way to do this without using
>>AppleScript to find out the file type. There has been some recent
>>discussion of doing some AppleScript commands without using the
>>external - check the list archives.
>>
>>I've included a modified version of my filtering function below.
>>It basically goes through the file list and creates a new list of
>>files that are either GIF, JPEG, or PICT files. You can easily
>>modify it to your needs. You'll notice that I've jumped through
>>some hoops to make sure the directory and file names are correct.
>>This is necessary because MetaCard uses the Unix standard "/"
>>character as the separator in path names (replacing the Mac's ":").
>>It's more complicated on the Mac because Mac folder and file names
>>can have "/" in them; in this case, MetaCard replaces "/" with ":"
>>in file and directory names.
>>
>>Hope this helps.
>>
>>Regards,
>>David Tremmel
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.