Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dberch1956

macrumors newbie
Original poster
Jan 2, 2010
14
0
Greetings. I'd like to be able to find the following on my mac...

All images that have ...
the text "David" OR the text "dberch" OR the text "berchtold"

How do I do that?

Thanks,
David
 

Sumleilmus

macrumors member
Nov 6, 2011
97
6
/
get regular expression

Open a Terminal shell and at the prompt type
Code:
man grep
.

I know enough to point you in this direction, but not enough to be more help than that. Usually the space bar will move the page down as you read.

Many UNIX books for Mac OS will explain the command, possibly in a way you will find more congenial.
 

chown33

Moderator
Staff member
Aug 9, 2009
10,747
8,420
A sea of green
Create a "composite" search item using "Find..." or "New Smart Folder" in Finder.

First, open the Find window or a New Smart Folder.

Then add a "Kind" is "Image" search item.

Next, hold down the OPTION key and click the round + button. It should add what I call a "composite" item, which lets you choose:
(Any/All/None) of the following are true

Set the popup to "Any" (its default).

Now, below and indented will be one default search item, which you can change to search for your first name of interest. Then click its round + button, and another item will be added under the composite. Change it to match your second name. Repeat again for the third name.

I call this a composite item because it's composed of subsearch items. I only recently learned of it, so it may have an official name I'm unaware of.
 

dberch1956

macrumors newbie
Original poster
Jan 2, 2010
14
0
Thanks, Chown33. I'm trying to follow your instructions and I must be really thick.

1) "Any" is the default for "of the following are true," so I'm not sure why I need to do that.

2) When I do a find on "dberch" it shows me boatloads of stuff that does NOT contain dberch. See attached pic. What is going on please? is Search Broken? Sure looks like it.

3) If i have any chance at all of following your instructions, i'll need pictures showing each step. Is that too much to ask? I understand if it is...

4) in your instruction: "Then click its round + button, and another item will be added under the composite. Change it to match your second name. Repeat again for the third name." There is no place to enter search text. except the original search text at top right of the dialog. Is that what you mean?

5) as soon as you hit Option, there is no + button it changes to "...". This type of error makes following your instructions really confusing. Please try to be clear.

I am a UI Designer by trade. This is the most frustrating thing I've seen in months. Why the HELL can't I just type AND or OR in the search text??? I feel better now. a little. :)

Thanks,
David

Create a "composite" search item using "Find..." or "New Smart Folder" in Finder.

First, open the Find window or a New Smart Folder.

Then add a "Kind" is "Image" search item.

Next, hold down the OPTION key and click the round + button. It should add what I call a "composite" item, which lets you choose:
(Any/All/None) of the following are true

Set the popup to "Any" (its default).

Now, below and indented will be one default search item, which you can change to search for your first name of interest. Then click its round + button, and another item will be added under the composite. Change it to match your second name. Repeat again for the third name.

I call this a composite item because it's composed of subsearch items. I only recently learned of it, so it may have an official name I'm unaware of.
 

Attachments

  • Search problems.jpg
    Search problems.jpg
    484.8 KB · Views: 83
Last edited:

kaibob

macrumors regular
Jun 21, 2010
236
67
Prescott, Arizona
Open a Terminal shell and at the prompt type
Code:
man grep
.

I know enough to point you in this direction, but not enough to be more help than that. Usually the space bar will move the page down as you read.

Many UNIX books for Mac OS will explain the command, possibly in a way you will find more congenial.

I suspect the OP is looking for a solution with a GUI, which allows matching files to be easily copied, moved, and otherwise manipulated. But, if not, the commandline included below will do what he wants and is easily run by pasting it into a terminal window.

As written, the search directory is the user's home directory. This can be changed by removing "~" and substituting a path, such as "/Users/Kaibob/Photos". Also, the search is not case sensitive but can be made so by changing -iname to -name.

find ~ \( -iname '*David*' -o -iname '*dberch*' -o -iname '*berchtold*' \) \( -iname '*.jpg' -o -iname '*.png' \)
 
Last edited:

chown33

Moderator
Staff member
Aug 9, 2009
10,747
8,420
A sea of green
Thanks, Chown33. I'm trying to follow your instructions and I must be really thick.

1) "Any" is the default for "of the following are true," so I'm not sure why I need to do that.

2) When I do a find on "dberch" it shows me boatloads of stuff that does NOT contain dberch. See attached pic. What is going on please? is Search Broken? Sure looks like it.

3) If i have any chance at all of following your instructions, i'll need pictures showing each step. Is that too much to ask? I understand if it is...

4) in your instruction: "Then click its round + button, and another item will be added under the composite. Change it to match your second name. Repeat again for the third name." There is no place to enter search text. except the original search text at top right of the dialog. Is that what you mean?

5) as soon as you hit Option, there is no + button it changes to "...". This type of error makes following your instructions really confusing. Please try to be clear.

I am a UI Designer by trade. This is the most frustrating thing I've seen in months. Why the HELL can't I just type AND or OR in the search text??? I feel better now. a little. :)

Thanks,
David
Sorry, I neglected to say that I was on Mtn Lion, rather than Mavericks.

I don't have Mavericks on anything here, so I can't describe what it does on Mavericks. Maybe someone else can provide the details you seek.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.