Today I needed to create a text list of the filenames of a selection of raw files in LR, so I could then search for the JPGs I’d also shot (with the same filenames) but had accidentally separated from their raws. This is definitely a niche problem, and boy did it take me ages to work out how to do, but finally I cracked it and immediately made a note in Evernote because I guarantee the next time I need to do this I’ll have forgotten!
Here’s how I did it on a Mac – PC users will need their own word processing apps:
- In Lightroom, select all the files you need to make a list of
- Open a new TextEdit window and switch to Plain Text mode
- Drag all the selected images from LR to TextEdit which should produce a list of the file paths, one per line – if the images themselves show up, make sure you’re in Plain Text mode
- Copy and paste all the text from TextEdit to Pages, or any other Word Processor that supports showing invisible characters
- Use the app’s ‘Show invisible characters’ command, which should reveal the ‘carriage return’ symbol at the end of each line – in Pages this is under the View menu
- Use the Find & Replace command to delete the ‘path’ part of each line (e.g. Volumes/Username/Folder/ ) leaving just the filenames with the filetype extension, but still with an invisible carriage return at the end, which LR won’t like
- If your app supports it, you can remove the carriage return by typing alt-[return key] into the ‘Find’ box to enter a ‘carriage return’, then type a comma and space into the ‘Replace’ box and you’re good to go
- If your app doesn’t support that try selecting one of the carriage return symbols then look for a Find -> Use Selection for Find command in the menus. In Pages it’s under the Edit menu (Command-E). Then you can type the comma and space into the ‘Replace’ box as normal.
- All done! A lovely list of the filenames, all on one line, separated by a comma and space, which you can paste into Lightroom’s text search box to find the images you want.
Like I say, definitely a niche problem this one. But hopefully not a problem any more!
6 Comments
Add comment Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Thank you for your great technique idea. While I am late to the game, I used your technique to solve a different problem. The question I needed answering is “What Lightroom Catalog entries are missing from folders in the Directories where I store my images.” And vice versa. So, I wrote an AppleScript that compares file names from LR (your technique to get a list of the image names) vs. File Directories. Clearly I have been sloppier that I thought over the years and have a tedious process now to reconcile :(. But, because of you I was able to get a list of the LR catalog!!!! Again, thank you for posting.
2024 and this was the solution I needed. Thank you. SOOOOOOO simple.
Hello,
I’ve tried it with my Lightroom CC 2.2 for MacOS but got stuck on step 3: dragging the images does exactly nothing :(
Any ideas what might be the problem?
Thanks in advance!
Not sure, I made sure these exact steps worked for me using Lightroom Classic CC (latest) and the apps mentioned above. Dragging images from one app to the window of another should definitely do *something*, if the referenced images are on your hard drive. Are yours perhaps in the cloud somewhere? Maybe that makes a difference?
Hey there,
Happy new year! Just came across your post on how to export a list of filenames from Lightroom. I’m trying to figure out how did you drag the selected images to pages to show its path? Mine is showing as an actual image rather than the file path. Any help would help would be great. Thanks in advance!
Hi, Yep, this wasn’t very clear or helpful, sorry about that! There is a better way though, and I’ll edit this into the post. If you have TextEdit (it’s a standard Mac OS app so you should) open it and switch to Plain Text mode in the Format menu. Drag your images from LR to this document and the paths should show up, each on a new line. If the images show up make sure you’ve switched to Plain Text mode. Then copy and paste this list of images into Pages and select Show Invisibles (View menu). Now carry on with the find and replace process :)
Long winded, but gets there in the end!