5

I am looking for a macOS equivalent of the Windows command:

type:NOT"file folder" 

This command, when entered into Windows Explorer search bar, will display all the files of a directory or hard drive, without showing the folders in the search results.

Thanks.

1 Answer 1

4

The Spotlight query you need to use the "kind" attribute. The search term you want is:

"search term" NOT kind:folder

For example, I tested this looking for an eBook titled Mastering OpenVPN. Here are the results of the two searches:

Kind Keywords for Spotlight Search

Spotlight Kind Search Terms

I don't recall where I obtained this list; I just have it saved in my notes as plain text. I formatted it as an image for this site because there was no facility to create a table here on Ask Different

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .