How do I find a file in a folder?

Joined
Jul 22, 2012
Messages
79
Reaction score
1
Points
8
Your Mac's Specs
2012 Mac Mini with 16GB RAM
I need to be able to search for a file (pattern) in a specific folder. This is really easy to do in Windows Explorer on a PC, but seems to be impossible on a Mac!

Here's some more details on what I want to do:

1. Launch Finder

2. Navigate to a specific folder (e.g. Music)

3. Enter a filename pattern (e.g. 'mysong')

4. Have all of the files in the selected folder that match the pattern (contain the text I entered) displayed in the results window

I must be missing something!
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Try using the free "Find Any File app". Free download from here.
 
OP
R
Joined
Jul 22, 2012
Messages
79
Reaction score
1
Points
8
Your Mac's Specs
2012 Mac Mini with 16GB RAM
^ Thanks! Surely there must be a way to do this natively as it's a fairly basic requirement? In Windows if I start typing the first few characters I get the results in real time.
 
Joined
Jan 20, 2012
Messages
5,068
Reaction score
431
Points
83
Location
North Carolina
Your Mac's Specs
Air M2 ('22) OS 14.3; M3 iMac ('23) OS 14.3; iPad Pro; iPhone 14
^ Thanks! Surely there must be a way to do this natively as it's a fairly basic requirement? In Windows if I start typing the first few characters I get the results in real time.

Well, I'm no expert (a novice in fact - :[) in using the terminal, but UNIX (which is the robust foundation of Mac OS X) has powerful commands that can do what is required and quickly - just one LINK, if interested in exploring that route. Dave :)
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
When you do a search, you have the option to do it for the whole drive or just the folder you're in. See screen shot:
Just click on the folder name at the top.

Searching_“PDF”_and_How_do_I_find_a_file_in_a_folder__-_Mac-Forums_Discussions_for_Apple_Product.jpg
 
Joined
Nov 29, 2010
Messages
2,513
Reaction score
134
Points
63
Location
Warrington, UK
Your Mac's Specs
PPC Mini, 10.4.11. Intel Mini, 10.6.8. MacBook Pro, 10.14.6. M1 MBA 11.6.3 iPhone 5 iOS 12.5,
Press Cmd/Spacbar to open the Spotlight window, then type your filename in there.
 
OP
R
Joined
Jul 22, 2012
Messages
79
Reaction score
1
Points
8
Your Mac's Specs
2012 Mac Mini with 16GB RAM
When you do a search, you have the option to do it for the whole drive or just the folder you're in. See screen shot:
Just click on the folder name at the top.

This is exactly what I tried but it does not work for me. I get no results shown, even if I enter the exact filename to search for.

I'm using OS X 10.8.4. Maybe it's a bug?

What I think is happening is that it is searching the contents of the files for my search string. I don't want it to do that! I simply want to find the file.
 
Joined
May 19, 2009
Messages
8,428
Reaction score
295
Points
83
Location
Waiting for a mate . . .
Your Mac's Specs
21" iMac 2.9Ghz 16GB RAM - 10.11.3, iPhone6s & iPad Air 2 - iOS 9.2.1, ATV 4Th Gen tvOS, ATV3
This is exactly what I tried but it does not work for me. I get no results shown, even if I enter the exact filename to search for.

I'm using OS X 10.8.4. Maybe it's a bug?

Not a bug, but your Spotlight might need re-indexing. To do that follow these rules, and be aware, that if your Home Folder is quite Large, this might take some time, but do let it do its job, as it does slow down the Mac while doing the job.

From the Apple () menu, choose System Preferences.
Click Spotlight.
Click the Privacy tab.
Drag a folder or an entire volume (your hard drive) to the list.
If prompted for confirmation, click OK.
Remove the item or volume you just added to the list by clicking it and then clicking the minus ("-") button.
Close Spotlight preferences.

Once you close Spotlight Preferences, this is when Spotlight will start its Re-Indexing, and to see this hit ⌘ + SpaceBar and you will see the working colour spinny thing going.

Remember THIS COULD take quite a while, but sometimes this needs to be done, to find simple files, because things have been screwed up.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
On the other side of the window, do you get this? Just select filenames.

Screen Shot selection.png
 
OP
R
Joined
Jul 22, 2012
Messages
79
Reaction score
1
Points
8
Your Mac's Specs
2012 Mac Mini with 16GB RAM
On the other side of the window, do you get this? Just select filenames.

Yes I do! So I think I can get this to work now by selecting 'Filenames'. It was a bit weird because the search always defaults to the entire mac when I enter the search string, even though I am in the folder that I want to search within. I then have to click the foldername tab at the again.

Thanks to everyone for their help!
 
Joined
May 19, 2009
Messages
8,428
Reaction score
295
Points
83
Location
Waiting for a mate . . .
Your Mac's Specs
21" iMac 2.9Ghz 16GB RAM - 10.11.3, iPhone6s & iPad Air 2 - iOS 9.2.1, ATV 4Th Gen tvOS, ATV3
It was a bit weird because the search always defaults to the entire mac when I enter the search string, even though I am in the folder that I want to search within. I then have to click the foldername tab at the again.

This can be changed in Finder Preferences>Advanced and options to look in 'This Mac' 'Current Folder' or 'Previous Search'
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top