Bridge: Ability to search by city

  • 3
  • Idea
  • Updated 1 year ago
  • (Edited)
I'm having problems with the search function in bridge - it will let me search files by altitude but not by city???  I need to locate images I've taken in my city, but since my city's name appears in the creator's address and in copyright fields I can't use the "All Metadata" option because then Bridge finds ALL of my files.  I rarely search for files by colorspace, but being able to locate them by state, city, country, etc. would be a real boon.
Photo of Dave McShaffrey

Dave McShaffrey

  • 2 Posts
  • 0 Reply Likes

Posted 1 year ago

  • 3
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
You might like to try this script I have just written, it will create a Collection when the find criteria is found in the select field.
https://raw.githubusercontent.com/Paul-Riggott/PS-Scripts/master/Find%20In%20Field.jsx

To install: right click on the file and save
copy/move the file to the relevant folder, this can be found by going to th Bridge preferences - Startup Scripts then click "Reveal My Startup Scripts" this will open the folder where the script is to be placed.
Close and restart Bridge and accept the new script, this will show in the tools menu as "Find In Field"

This example will search the City field for Leeds Harrogate or London
If any are found a new collection will be created and this collection will be selected.
Photo of Stephen Marsh

Stephen Marsh

  • 74 Posts
  • 15 Reply Likes
Excellent, thank you Paul!

Is there any chance to add a “wildcard” feature so that a user can specify on the fly a metadata field that you have not coded into the script? As your script “only” offers 13 hard coded fields, there is a good chance that a user may need this functionality in an unforeseen field. Seems better to offer a variable “wildcard” option, where they could simply look in File Info > Raw Data and find the required field name to use. A mockup on the Bridge interface to illustrate the point:



Or even just the ability to search for an entire string from File Info Raw Data would be workable (Bridge Find does not like the < > characters):
<photoshop:City>Sydney</photoshop:City>
(Edited)
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
It would be nice, but as always there is a but. In tn this case you need to have a namespace along with the property to get details and they are case sensitive.
The only way it could be done is script ALL namespaces and list all properties against a namespace. This would be a fair task. Better having the Bridge team to sort the seach feature.
Mind you I am still waiting for them to fix bugs that are over FIVE years old.
It might be a good project for one of Daves sudents?
Photo of Stephen Marsh

Stephen Marsh

  • 74 Posts
  • 15 Reply Likes
Thanks Paul, I was hoping that you were not going to say that, however when I saw the namespaces in the script I had a sneaking suspicion that would be the reply!
Photo of Dave McShaffrey

Dave McShaffrey

  • 2 Posts
  • 0 Reply Likes
Thanks Paul and Stephen!  Paul, I'll give the script a try as soon as I get back to my desktop computer, I'm off for a few days.
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
Stephen and Dave, I have just written another script but it is NOT user friendly it requires an expert user! As it needs you to select the namespace or the prefix and enter the field name you are looking for, plus the string to look for.
https://raw.githubusercontent.com/Paul-Riggott/PS-Scripts/master/Expert%20Search.jsx


Creates a collection if any found.
Photo of Stephen Marsh

Stephen Marsh

  • 74 Posts
  • 15 Reply Likes
Fantastic work Paul, thank you again for your generosity! 
Photo of Stephen Marsh

Stephen Marsh

  • 74 Posts
  • 15 Reply Likes
Hi Paul, do you have any good reference sites that list metadata namespaces and prefixes? I have the Adobe XMP specification docs...

P.S. I’m just serious, what we see in File Info Raw Data – is this visible/available to scripting?
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
Hi Stephen, I only have the same docs as you, but you can access some of the data.
Here are a couple of scripts.
This one dumps the selected documents XMP to individual text files on the desktop in a more readable format:
https://raw.githubusercontent.com/Paul-Riggott/PS-Scripts/master/Dump%20XMP.jsx

This one will create a file on the desktop with the registered namespaces:
https://raw.githubusercontent.com/Paul-Riggott/PS-Scripts/master/NameSpace%20List.jsx

(This is what I used in the Expert Find script)
Edit: The best site for information is still Phil Harveys
(Edited)
Photo of Stephen Marsh

Stephen Marsh

  • 74 Posts
  • 15 Reply Likes
Thanks Paul, as I can’t script, I use ExifTool... However a GUI can be nice even though I am comfortable with ExifTool’s CLI. Thank you for the clarification.