Getting list of files in a folder

Kay C Lan lan.kc.macmail at gmail.com
Tue Feb 9 01:30:46 EST 2010


On Tue, Feb 9, 2010 at 1:53 PM, Scott Rossi <scott at tactilemedia.com> wrote:

> A little side note about the defaultFolder...
>
> Whilst on side notes, if you are dealing with OS X then you have the pain
of needing to decide what you are going to do with 'packages', which are of
course folders that are made to look like files. Do you consider an
application a file that you want to list. If not you are OK. But a quick
test with TextEdit and .rtfd files, ie a text file with an included image,
has it saved as a package and therefore isn't Listed with the 'put the
files'  scripts that have been put forward. Off the top of my head, iMovie &
iDVD project files are packages and so would not be listed. I'm sure there
are a number of other apps out there that produce files which are really
packages and therefore would be missed.

For your particular needs the provided scripts may be suitable, but for
anyone else needing similar, dealing with OS X and needing a list of
everything in a Folder that is not a standard plain folder, then you are
going to have to use 'put the folders' and then filter out everything
without a dot suffix, and then add that to your list from 'put the files'.

HTH



More information about the use-livecode mailing list