Skip to main content
Participant
November 18, 2019
Question

Searching for PSD files by layer name

  • November 18, 2019
  • 2 replies
  • 2278 views
I have a question about searching for photoshop PSD files by layer names.
I used to do it on mac with spotlight, but the layer names are not all inclued any more in metadatas of the PSD files, so I don't find any more my files...
 
I have hundreds of PSD files, filled with illustrations I've done since 20 years, and need to find specific objects every days, doing a search by layer name.
 
Do you know if bridge can do that ? I didn't find how to ?
This topic has been closed for replies.

2 replies

Participant
September 18, 2024

Hi there!

 

If you're still having this issue, you can check this software here:

https://github.com/RomainDereu/PSD-Batch-Editor

 

It uses a GUI so no need to use the command line.

 

Hope this helps

Stephen Marsh
Community Expert
Community Expert
November 18, 2019

It is possible via ExifTool

 

 

exiftool -if '$Photoshop:LayerNames =~ /Layer 0/' -Filepath -r 'top-level folder or file path'

 

 

Replace the layer name Layer 0 with your layer name, leaving the / forward slashes either side.

 

Otherwise, a custom Bridge script would likely be required, possibly saving a collection or smart collection.

Participant
November 18, 2019

Yes, MANY THANKS !
It works with ExifTool in the Terminal, it's not really easy, since I'm not used with terminal, and can get a snopshot of the result, and the search is case-sensitive.
I'm very interrested in your solution with Bridge Scripting, you were thinking to a script with the use of exiftool in Bridge ?

Participant
November 19, 2019

Hmm... I can pass an Automator variable for a Keyword from Automator to the shell script and then to ExifTool using "$@" but this does not work for the search/find... Not sure why, if it is because it needs to be escaped or something. I don't know much about Mac shell scripts so I'm sure this is something simple that I am missing!

 

 

P.S. The reason that I am passing the output of the shell script to a new text document is because I don't know how to write the ExifTool results to a Terminal window or some other log file etc. I know just enough to know that I don't know enough!


Yes, I've done the same with the text file !

And I don't manage to get the value given to the script, with "$@", it act as if the if was always 'true'.

With "$1", I have a Shell Script error, and I don't know where to with the error code, or a debugger.

I haven't found a concatenate function that could have solve the problem.

 

Anyway, many thanks !