Author Topic: Reversing 2 words  (Read 4088 times)

Offline jah313

  • Newcomer
  • *
  • Posts: 15
    • View Profile
Reversing 2 words
« on: May 07, 2010, 12:29:24 PM »
I have names in the HEADLINE that were entered as: Smith John

I now need to put the name in the correct order: John Smith. There are a few thousand photos. Is there a find/replace or variable that will work?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Reversing 2 words
« Reply #1 on: May 07, 2010, 01:26:22 PM »
I have names in the HEADLINE that were entered as: Smith John

I now need to put the name in the correct order: John Smith. There are a few thousand photos. Is there a find/replace or variable that will work?

Use the Find and Replace panel.  Search for 'Smith John' and Replace with 'John Smith'.  That should do it.

-Kirk

Offline jah313

  • Newcomer
  • *
  • Posts: 15
    • View Profile
Re: Reversing 2 words
« Reply #2 on: May 07, 2010, 03:45:44 PM »
I should have mentioned that every name is different on each photo.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Reversing 2 words
« Reply #3 on: May 07, 2010, 04:30:05 PM »
I should have mentioned that every name is different on each photo.

Oh.  Then there's no way to do that automatically.

-Kirk

Offline jah313

  • Newcomer
  • *
  • Posts: 15
    • View Profile
Re: Reversing 2 words
« Reply #4 on: May 07, 2010, 05:44:14 PM »
Thanks Kirk  ;D

Offline devenh

  • Sr. Member
  • ****
  • Posts: 435
    • View Profile
Re: Reversing 2 words
« Reply #5 on: May 11, 2010, 11:21:22 AM »
Not exactly an easy solution, but you might consider exporting the headline for the photos by doing this:

1. Select the images
2. File | Export
3. Select Text Exporter
4. Enter {filenamebase} {headline} in the center dialog box
5. Press Export and save the file

Import the exported file in Excel and you can use formulas to rearrange the names.  Next, you'll have to create a code replacement file using the filename and the rearranged names, then use PM to import the CR file.

Easy  ;D

Deven