Efficiently searching for file name
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.