Re: file info on a folder of items (2nd post)
Re: file info on a folder of items (2nd post)
- Subject: Re: file info on a folder of items (2nd post)
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 13 Apr 2001 09:34:04 -0700
On 4/13/01 8:49 AM, "Michelle Steiner" <email@hidden> wrote:
>
On 4/13/01 8:22 AM, Dean Ross-Smith <email@hidden> wrote:
>
>
> is there a way to get a list of items that that match certain file
>
> criteria without using a repeat loop?
>
> If I have a folder of stuff and want to get a list of files that are say >
>
> 1MB and whose file creator doesn't equal "temp", is there a really short way
>
> of doing it?
>
>
tell application "Finder"
>
files of item 1 of the selection whose file type is not "temp" whose
>
size is greater than 1024000
>
end tell
>
No, Not the file type, the creator type, and the Finder's term is 'physical
size'.
tell application "Finder"
set bigFiles to every file of alias "HD:blah:someFolder" whose physical
size > (1024 * 1024) and creator type /= "temp"
end tell
That won't get you files within subfolders, however. And unfortunately, the
Finder's 'entire contents' property, which should do it, is notoriously
faulty. There is a way, a bit complicated, with one repeat loop (but it's
very quick) using the osax Akua Sweets. Come back if you need files in
subfolders.
--
Paul Berkowitz