mdfind – How to Find a Specific Word?
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