• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: file info on a folder of items (2nd post)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: file info on a folder of items (2nd post) (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Dictionaries for apps inside 'packages'
  • Next by Date: Re: CGI?
  • Previous by thread: Re: file info on a folder of items (2nd post)
  • Next by thread: sorting routine
  • Index(es):
    • Date
    • Thread