Spotlight filter file type and folder
I am trying to find a way to use Spotlight to find a string in a file type “PDF” and specific folder.
Any pointers would be appreciated.
I am trying to find a way to use Spotlight to find a string in a file type “PDF” and specific folder.
Any pointers would be appreciated.
I shoved a Pandoc User's Guide (pandoc.pdf) into a PDF folder on my Desktop. The following found the string "Using Pandoc" in it the pandoc.pdf table of contents as the first Spotlight PDF document, and the first folder was the PDF folder:
The Spotlight keywords are bolded, and accompanied by Spotlight metadata.
(kind:folder name:pdf) OR (kind:pdf "Using Pandoc")
Show me the folder whose name contains "pdf" or any PDF whose contents contain the string "Using Pandoc".
Select the item in Spotlight results and press ⌘R to open a Finder window to that location, or press ⌘ to see the path to the PDF. Press return to open the PDF.
Here you go...
How to use Spotlight, how to narrow your searches, and how to create and refine and save searches:
Use Spotlight on your Mac - Apple Support
I shoved a Pandoc User's Guide (pandoc.pdf) into a PDF folder on my Desktop. The following found the string "Using Pandoc" in it the pandoc.pdf table of contents as the first Spotlight PDF document, and the first folder was the PDF folder:
The Spotlight keywords are bolded, and accompanied by Spotlight metadata.
(kind:folder name:pdf) OR (kind:pdf "Using Pandoc")
Show me the folder whose name contains "pdf" or any PDF whose contents contain the string "Using Pandoc".
Select the item in Spotlight results and press ⌘R to open a Finder window to that location, or press ⌘ to see the path to the PDF. Press return to open the PDF.
Spotlight filter file type and folder