• 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: fast find files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fast find files?


  • Subject: Re: fast find files?
  • From: Brian Johnson <email@hidden>
  • Date: Sun, 17 Feb 2008 19:51:17 -0800 (PST)


{hmm... interesting list-name alias there...}

On Sun, 17 Feb 2008, Philip Aker wrote:

On 2008-02-17, at 14:51:10, Kurt Klamp wrote:

i want to find files in a folder, given a chunk of their name. The folder has more than 2000 files.
<snip>
Or is there a (free) osax or handler, which do a fast filesearch (case insensitive or the best with regexp)?

MetaData.osax should be at: <http://www.vcn.bc.ca/~philip/#MetaData.osax>

or, if you don't want the benefits of Philip's osax

	set fs_search_root to POSIX path of search_root
	set Q to quoted form of search_string
	set T to paragraphs of (do shell script "mdfind -onlyin " & fs_search_root & " " & Q)

search_root is a file-system path to the folder (and subfolders) to be searched.

Q is the query string (file name or content fragment)

mdfind is the guts of Spotlight. With tweaks to the parameters I believe you should be able to restrict the search to one folder and names only.

  -b.johnson, dept of architecture, university of washington, seattle
_______________________________________________
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
References: 
 >fast find files? (From: Kurt Klamp <email@hidden>)
 >Re: fast find files? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: fast find files?
  • Next by Date: Re: Dynamically change button cell image within a table view
  • Previous by thread: Re: fast find files?
  • Next by thread: Re: fast find files?
  • Index(es):
    • Date
    • Thread