• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SQL to copy original filename to a searchable metadata field

New Here ,
Apr 02, 2014 Apr 02, 2014

Copy link to clipboard

Copied

Hi,

I made a large number of changes to the names in my library, and would like to do a search based on the original filename to find images. I found a plugin (AnyFilter - http://www.johnrellis.com/) which allows me to search a number of different fields, but Original Filename is not one of them.

I was hoping someone could help me out with the SQL required to copy the Original Filename within the database directly to some field that would be searchable? I understand how to open and execute SQL against the lightroom database, I'm just not familiar enough with the lightroom db schema to write this myself.

Thanks in advance!

TOPICS
SDK

Views

734

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 02, 2014 Apr 02, 2014

Copy link to clipboard

Copied

See 'Original Filenames' preset in SQLiteroom plugin.

http://www.robcole.com/Rob/ProductsAndServices/SQLiteroomLrPlugin

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 14, 2014 Nov 14, 2014

Copy link to clipboard

Copied

LATEST

Cheap n' dirty way to get original filename:

Make a filenaming preset which uses original filename (only).

local originalFilenameBase = photo:getNameViaPreset( id )

Note: you can't get the extension that way, but still..

R

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines