Author Topic: how to select a specific word from {Event}  (Read 2387 times)

Offline Jaap van der Pijll

  • Newcomer
  • *
  • Posts: 37
    • View Profile
how to select a specific word from {Event}
« on: August 02, 2022, 05:11:37 AM »
Question:

In “Event” I have four words (WordA WordB WordC WordD).
I want the first (WordA) and third (WordC) word to appear in a different location (add by keywords).

Is this possible and if so, how?
thanks in advance
« Last Edit: August 02, 2022, 05:59:31 AM by Jaap van der Pijll »

Offline Mick O (Camera Bits)

  • Camera Bits Staff
  • Hero Member
  • *****
  • Posts: 553
    • View Profile
    • Camera Bits
Re: how to select a specific word from {Event}
« Reply #1 on: August 02, 2022, 09:45:55 AM »
There is no way to automatically separate a string from any fields into individual words. (Unless they always have the same number of characters every time, which is unlikely.)

There are a number of ways to approach doing this, usually by adding one more step. One way is just add the WordA WordC keywords in a second Metadata Template. OR a different approach is to add the {event} variable to the keywords, and make the additional step a "Find and Replace" (macOS: ⌘-Shift-f, Windows: Ctrl-Shift-f)   on the Keyword field where you Find WordA WordB WordC WordD and Replace with WordA WordC. The settings to apply Find & Replace ONLY to the keywords field would look something like below (note the checkbox to search "metadata" and checking the box for "keywords" field:

Hope that helps.

-Mick
Mick O
Camera Bits

Offline Jaap van der Pijll

  • Newcomer
  • *
  • Posts: 37
    • View Profile
Re: how to select a specific word from {Event}
« Reply #2 on: August 02, 2022, 12:37:03 PM »
Thanks for the quick response. I'll see if I can go further with your suggestions.