Re: fast find files?
Re: fast find files?
- Subject: Re: fast find files?
- From: EBI Aktivitet <email@hidden>
- Date: Mon, 18 Feb 2008 06:51:51 +0100
- Thread-topic: fast find files?
Title: Re: fast find files?
You could use find via do shell script. Very fast, no osax needed, and in my opinion easier and safer than mdfind if all you want to search on is part of the file name.
--POSIX path to folder
set theFolderPathPOSIX to "/Users/adim/Downloads"
--Part of file name. Use * as wild card
set theFindString to "*.dmg"
--Perform find via do shel script
set theResult to do shell script "find " & quoted form of theFolderPathPOSIX & " -iname " & quoted form of theFindString
Regards, Adim Lundin
--
Www.ebi.se
Den 08-02-17 23.51, skrev "Kurt Klamp" <email@hidden>:
Hi,
i want to find files in a folder, given a chunk of their name. The folder has more than 2000 files.
Using
every item of folder "fld" whose name contains "chunk of filenane"
is awfully slow AND case sensitive.
In the dictionary of the Finder (OS 10.4.11) i found:
find v : Return object that match the provided query
find Unicode text : the query to execute (in Spotlight form)
Anyone can explain how to use this command (the spotlight form)?
If i do a
find "chunk of file"
it opens a empty spotlight window.
Or is there a (free) osax or handler, which do a fast filesearch (case insensitive or the best with regexp)?
Tia,
-- Kurt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden