• 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
mdfind – How to Find a Specific Word?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mdfind – How to Find a Specific Word?


  • Subject: mdfind – How to Find a Specific Word?
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 14 Mar 2017 15:38:29 -0500

Hey Folks,

This Spotlight query finds all items whose name contain the string “find”:

cd ~/'Documents/Scripts (Library)/Application Scripting/AppleScriptObjC { ASObjC }'
mdfind -onlyin . 'kMDItemFSName == "*find*"c'

So – all items containing the word “Finder” are also found.

I would like to reduce that to only the items whose names contain the WORD “find”.

Presently the only way I know how to do this is to post-process the mdfind results.

Is there a way to force Spotlight to find what I want?

TIA.

--
Best Regards,
Chris


 _______________________________________________
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


  • Follow-Ups:
    • Re: mdfind – How to Find a Specific Word?
      • From: Shane Stanley <email@hidden>
    • Re: mdfind ­ How to Find a Specific Word?
      • From: Jim Underwood <email@hidden>
    • Re: mdfind – How to Find a Specific Word?
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: Run Perl Source Text Directly from AppleScript – List AppleScript Library Handlers
  • Next by Date: Re: mdfind – How to Find a Specific Word?
  • Previous by thread: Re: notes to pdf
  • Next by thread: Re: mdfind – How to Find a Specific Word?
  • Index(es):
    • Date
    • Thread