TTG Client Script

Download the latest TTG Client Lightroom Script version here (20091216.002)

Released under the GNU GPL version 3 license

 

This PERL script converts TTG Client Response Gallery, TTG Highslide Gallery and TTG Highslide Gallery Pro gallery selection emails

e.g.

Selections: EX_20080914_153823, EX_20080914_154715
GalleryTitle: Test Gallery
Name: Sample
Email: <<email address>>

into smart collections that can be imported into Lightroom.  Details regarding the usage of these web galleries can be found at The Turning Gate.

Pre-Requisites

This script is written in PERL.  Mac OSX users should already have PERL available on their system.  Windows users may need to download and install PERL from here.

Usage

  1. Unzip the TTG Client Lightroom Script (144) file on your HDD.
  2. Copy the body of a TTG Client Response Gallery, TTG Highslide Gallery or TTG Highslide Gallery Pro gallery selection email into a text file. (Example: ttgclient-sample.txt, in the test directory of the download ZIP) 
  3. Run the ttgclient.pl script installed in step 1, passing one or more filenames as parameters. Do this using a command line similar to the one (in bold) below.  Upon successful execution of the script the “Smart Collection” response will be provided.
    e.g. on Windows ttgclient.pl test\ttgclient-sample.txt
    Smart Collection TTGClient-Sample-Selections.lrsmcol ready for import to Lightroom.
    e.g. on Mac (assumes perl is in you path) perl ./ttgclient.pl test/ttgclient-sample.txt
    Smart Collection TTGClient-Sample-Selections.lrsmcol ready for import to Lightroom.
  4. Open Lightroom’s Library module.
  5. In the Collections panel, right click on a Collection. Select Import Smart Collection Settings from the context menu, then select the file generated by ttgclient.pl (e.g. TTGClient-Sample-Selections.lrsmcol).
  6. If the client specified ratings for any of the photos you will also have a separate import files generated for each rating level awarded.  Repeat the previous step until all of the collections are imported.

You should now have a new Smart Collection (e.g. TTGClient-Sample-Selections) containing all of the selections and rated images included in the email from the gallery. 

History

Version Change Log
20091216.002 Worked around LR2 web gallery bug that renames files if they have a hyphen in their name (Issue #40).
Added support for TTG Highslide and TTG Highslide Pro gallery email format (Issue #41).
20081102.001 Initial public release

 

3 Responses to “TTG Client Script”

  1. Capturing your Client’s Selections in Lightroom | The Photo Geek - December 17th, 2009

    [...] galleries cover part of the workflow gap – allowing clients to inform you of selects – and my TTG Client script addresses the remainder by converting the response emails into Smart Collections ready for import [...]

  2. Jim Reekes - December 27th, 2009

    This version still requires Mac users to save the file with Unix “line feeds” (not a easy task for the typical user). Macs create text files with “carriage returns” only.

    This version now fails if the image name uses an underscore, which everyone of my files do have. This is the default naming for shooting in RAW with Canon “_MG_0120″.
    Signed,
    Mac user

  3. Matt - December 27th, 2009

    @Jim, I don’t have a Mac so it makes testing this sort of thing a bit difficult. I’ll try to grab a Linux VM which should be close enough to OS X to replicate the issue on a budget. I did start working on the issue but the Perl doco around this is a little difficult to work through if you can’t personally test the resulting code.

    Can you please clarify what “fails” means? All my images use underscores, and I’ve just retested to ensure leading underscores don’t cause a problem (hadn’t checked that before). All seems to be working as expected so I’ll need a bit more information to track down the issue you are encountering.

Leave a Reply