Skip to main content
Participant
Sep 18, 2019 2:48 PM UTC
Answered

Searching for multiple filenames in Bridge

Hi, hopefully this isn't a duplicated request somewhere, but I'm looking to search for multiple filenames in Bridge. I have 100's of files to browse through, and have a list of filenames to search for, but can't see how to enter this data to search.

 

I was hoping to search in Bridge with 'Filename' and a list pasted in the Enter Text file, but it doesn't appear to work.


Thanks in advance

LumigraphicsCorrect answer
Legend
Nov 14, 2022 4:29 PM UTC

November 2022 update:

I have added a beta feature to my finished MultiSearch Plus script which searches for a list of terms and saves the results to a new collection. This works in Bridge 2022 and Bridge 2023 but the list of collections doesn't refresh in Bridge 2023 unless you manually close and reopen the Collections panel.

 

https://www.dropbox.com/sh/mg817g9a9ymbasi/AADTmXUVxmFfM58bcyYE7yiwa?dl=0

40 replies

KimberlyPek
Known Participant
Nov 27, 2024 11:36 PM UTC

Is there an updated script for 2025? I am having the same issue? Or is there a way to do it now that I have not figured out???

 

Translate
Inspiring
Apr 24, 2023 11:23 AM UTC

I have the same problem. But it doesnt work. I exported raw files from LR from a wedding, raw are 1234.NEF but I exported them as jpeg  as Mary-and-peter-0001.jpg. So I uploaded this to an online gallery for favorit album photos, so I have a list of 100 photos that cant search on LR, and cant search in jpeg folder. Adobe should implement that...

Translate
LumigraphicsCorrect answer
Legend
Nov 14, 2022 4:29 PM UTC

November 2022 update:

I have added a beta feature to my finished MultiSearch Plus script which searches for a list of terms and saves the results to a new collection. This works in Bridge 2022 and Bridge 2023 but the list of collections doesn't refresh in Bridge 2023 unless you manually close and reopen the Collections panel.

 

https://www.dropbox.com/sh/mg817g9a9ymbasi/AADTmXUVxmFfM58bcyYE7yiwa?dl=0

Translate
Participant
Jun 18, 2023 10:59 PM UTC

I am not quite sure what the "Make collection" does, even reading the readme file..because when i use it nothing happens. 
I made a video for you to see . Any tip? I thought hopefully the "Make collection" displays all the images and not one and one

https://youtu.be/PuX1kfpHZOo

Translate
Legend
Jun 19, 2023 1:32 PM UTC

Did you close and redisplay the Collections tab?

Translate
Legend
Sep 19, 2019 7:19 PM UTC

I did some hacking to see if this was possible and came up with a developmental script. I'll probably add it to my Utility Script Pack once I get it tested and polished a bit more. Please note that this is a test version and may have bugs!

 

Save the script below as a ".jsx" file (PLAIN TEXT, not RTF) and put it in Bridge Startup Scripts. Quit and relaunch Bridge.

It takes a plain text file of search terms, one per line, and creates a new collection of found files.

 

Open the top-level folder you want to search and select Tools->qsTest. Let it run until the last item in your list is onscreen (it may take a while.)

------------------

#target bridge
var qsTest1menu = MenuElement.create('command', 'qsTest', 'at the end of Tools');

qsTest1menu.onSelect = function(){
qsTest1();
}

qsTest1 = function(){
try{
var resultsF = app.document.thumbnail;
var thumbs = null;
var term = [];
var i = 0;
termFile = new File('~/Desktop').openDlg('Select Search Terms File', '*.txt');
if(termFile != null){
termFile.open('r');
var termLine = termFile.readln();
while(termLine != ''){
term[i] = termLine;
termLine = termFile.readln();
i = i + 1;
}
termFile.close();
}
else{
return;
}
var collName = Window.prompt('Please name the results collection.');
if(collName == '' || collName == null){
return;
}
var colls = app.getCollections();
for(var j = 0; j < colls.length; j++){
if(colls[j].name == collName){
app.deleteCollection(colls[j]);
break;
}
}
var qsColl = app.createCollection(collName);
var qsearch = new QuickSearch('');
qsearch.setSearchMethod('bridge');
for(var k = 0; k < term.length; k++){
qsearch.searchString(term[k]);
resultsF = app.document.thumbnail;
thumbs = resultsF.children;
app.addCollectionMember(qsColl, thumbs);
}
}
catch(e){
alert(e + e.line);
}
}

Translate
Stephen Marsh
Community Expert
Community Expert
Oct 4, 2019 2:28 AM UTC
Great job Lumigraphics!
Translate
Legend
Sep 29, 2020 7:38 PM UTC

I actually have a finished version of this script called MultiSearch Plus that works great.

Translate
Legend
Sep 18, 2019 3:05 PM UTC

Bridge doesn't have an interface to search for multiple items. That would require scripting.

Translate
NickJAuthor
Participant
Sep 18, 2019 3:08 PM UTC
Thanks for your reply, at least I know, would be handy, wouldn't it!
Translate