Export Folders named using hierarchical labels

  • Thread starter Thread starter Jos
  • Start date Start date
Status
Not open for further replies.
J

Jos

Guest
Hi All,

Currently i'm working on a plugin which should be able to export files into a directory structure using
- the directory structure from the source photo's, i.e. in the catalog
- the hierarchical labels assigned

As a kind of spin-off i have a small perl script which can be used to do the latter : it will copy existing JPG files into a directory structure based upon the
hierarchical labels present in the JPG files.

So if you want to try this remind the following :
- Export your files from lightroom with the option 'Write Keywords
as Lightroom Hierarchy' enabled
- the script is in Perl, so you need the script-interpreter (ActiveState)
- If the script doesn't start because of missing modules (like exiftool)
you need the 'Perl Package Manager' to add them

Feel free to give it a try....

download at : http://lightroom.6op6.nl/labeltree.zip

Note : you need to run it from the commandline
 
Jos, welcome to the forum!

You mention running it from the commandline... would you like to explain a little further, as not all of our members are familiar with such things.
 
Hi Victoria,

Sure no problem...
As i'm a pc-user i cannot give any instructions for the Mac users. Sorry for that.

In order to make life a little bit easier i used a 'perl compiler'to build a stand-alone program, so you don't need the perl interpreter anymore...

Ok...so let' assume you have exported a bunch of photos containing hierarchical label's. You need to export these photos in to a directory of your choice. Note the export option 'Write Keywords a Lightroom Hierarchy' needs to be enabled.

Example :
c:\photos\export\flat\photo''1.jpg
c:\photos\export\flat\photo''2.jpg
c:\photos\export\flat\photo''3.jpg
c:\photos\export\flat\photo''4.jpg

In this example i assume you uncompressed the labeltree.zip file in :
c:\photos\tool

Now start up a good old 'command prompt' window :
XP : Start button --> RUN --> CMD.EXE
Vista : Start button --> type CMD.EXE in search box

We are now going to COPY the photos in a differenct directory structure. The hierarchical labels will be used as directory names. The output will go to
c:\photos\export\label

In the command line window type :
c:\...>c:\photos\tools\labeltree.exe -Y c:\photos\flat c:\photos\label

The script will be busy for a while copying your photos...

There aren't many command-line switches available. type
c:\photos\tools\labeltree.exe -h
to find out.

Note : if you omit the '-Y' option the script won't copy the files (i.e. only a dry-run)

Download the script including the .exe from : http://lightroom.6op6.nl/labeltree.zip

Let me know if this works (or not) as i have done limited testing...
 
Thanks Jos
 
Status
Not open for further replies.
Back
Top