• 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
Efficiently searching for file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Efficiently searching for file name


  • Subject: Efficiently searching for file name
  • From: David Crowe <email@hidden>
  • Date: Sun, 6 Oct 2002 19:36:41 -0600

I'd like an efficient way to search for a file by name throughout my hard drive, just like Sherlock (or Find in 10.2) or FileBuddy can do in a few seconds.

So far I haven't found anything that works well:

1. FileBuddy appears to be virtually non-scriptable.

2. Sherlock does not appear to be able to search for files by name, just by content. I'd
love to be corrected if I'm wrong.

3. Finder:

tell application "Finder"
every file of startup disk whose name is "foo.jpg"
end

Only searches one level of the disk's file system

4. The finder comment: every file of every folder of startup disk whose name is "foo.jpg"

... takes almost forever (many minutes on my machine).

5. The Unix "find" command also seems to take a long time, and spits out error messages
every time it comes across a directory it can't open because of privileges.


I'm sure there is a way to do this efficiently, since Sherlock etc. can do these searches quite quickly.

- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Efficiently searching for file name
      • From: Emmanuel <email@hidden>
    • Re: Efficiently searching for file name
      • From: "Jared ''Danger'' Earle" <email@hidden>
    • Re: Efficiently searching for file name
      • From: Brian Redman <email@hidden>
  • Prev by Date: Re: top <repeat 100 times \r rant \r end repeat>
  • Next by Date: Add signatures to Mail
  • Previous by thread: Re: Mac OS X, Classic, Quark XPress and Script Debugger
  • Next by thread: Re: Efficiently searching for file name
  • Index(es):
    • Date
    • Thread