Alternate folder structures on Import

Mark Sirota

Senior Member
Joined
Oct 8, 2007
Messages
4,055
Location
Philadelphia, PA, USA
Lightroom Experience
Power User
Since the very early pre-1.0 betas, I've wanted to organize my files by date, but using a hierarchy unavailable in Lightroom -- specifically, YYYY/YYYY-MM/YYYY-MM-DD. In other words, shots from today would go into 2008/2008-10/2008-10-30.

Lightroom offers eight different ways to organize by date, but this isn't one of them. I've just discovered how to do it.

The Trick:

Add the following two lines to your TranslatedStrings.txt file (include the quotes):

Code:
"$$$/AgImportDialog/ShootArrangement_5/Template=%Y/%Y-%m/%Y-%m-%d"
"$$$/AgImportDialog/ShootArrangement_5/Label=By date: 2005/2005-12/2005-12-17"
Here's the location of TranslatedStrings.txt. If it doesn't exist, create it.
Mac: /Applications/Adobe Lightroom 2.app/Contents/Resources/en/
Windows: c:\Program Files\Adobe\Adobe Photoshop Lightroom 3\Resources\en\


(The locations are similar for Lightroom 1.x -- it's just "Lightroom" instead of "Lightroom 2".)

How this works:

Lightroom uses the TranslatedStrings.txt mechanism for international localization -- that is, this is how it changes text throughout the application for non-English languages. I've identified the strings used for the folder templates, and replaced them with my own. Other possibilities and permutations are possible -- the Lua documentation contains the full set of date tags.

I also use the TranslatedStrings.txt mechanism to change the formats used to display pixel dimensions and f-stops throughout the application, mostly to make those strings a little narrower to save screen space.

This example replaces the third template, "2005/December 17", with my own. I chose that one because I find it the most useless. I can't explain why the third one is number 5, but that's how they've done it.

Disclaimer:

The TranslatedStrings.txt mechanism is not fully supported by Adobe. They probably won't answer you if you ask them for help on it. This may not work in future versions of Lightroom. The file may be overwritten by updates, so save a copy elsewhere. Use of this trick may increase your risk of getting head lice or smelly feet.

Jeffrey Friedl gets considerable credit for planting the seed for this, initially through his Lightroom Configuration Manager, and then this morning through a post on a private discussion group that got my wheels turning.

Edit - Corrected paths
 
Last edited by a moderator:
Top