Author Topic: Use a variable to insert text in multiple fields  (Read 525 times)

Offline Jeff Vogan

  • Newcomer
  • *
  • Posts: 40
    • View Profile
Use a variable to insert text in multiple fields
« on: March 31, 2025, 08:23:42 AM »
I do a Code Replacement to insert a name in the caption, and then either cut & paste to insert that name into the Headline, Keywords, Persons Shwon or Personality field. It would be faster if I could have a placeholder in those multiple fields and then do one Code Replacement that inserts the text into the multiple fields.  I have recently seen this done in Caption Pro.

In the attached screenshot, Caption Pro has a placeholder, = people, in the Caption field and a few other fields. If you change the contents of = people, it inserts the change into the various fields. That would be a great timesaver.

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 238
    • View Profile
Re: Use a variable to insert text in multiple fields
« Reply #1 on: March 31, 2025, 09:20:03 AM »
I see Jeff's ideas, I automatically click 'like'

Offline Kevin M. Cox

  • Hero Member
  • *****
  • Posts: 554
  • 2025.1 (8239) | macOS 15.4.1
    • View Profile
    • Kevin M. Cox | Photojournalist
Re: Use a variable to insert text in multiple fields
« Reply #2 on: May 03, 2025, 07:10:34 PM »
Something to automatically add any names into those other fields would be great.

In my case I'd love it if any code replacement used (e.g. /h27/) would check for the existence of a specific column (e.g. /h27#3/) and insert it into the secondary field like Persons Shown.

This is because in most cases I don't want "Houston Astros second baseman Jose Altuve (27)" to be inserted into the Persons Shown field, I want just their name "Jose Altuve" which is commonly in the third column.

And since non-people replacements like "1i" = "first inning" won't have a third column, they wouldn't get inserted into the secondary field.
Kevin M. Cox | Photojournalist
https://www.instagram.com/kevin.m.cox/

Offline Jeff Vogan

  • Newcomer
  • *
  • Posts: 40
    • View Profile
Re: Use a variable to insert text in multiple fields
« Reply #3 on: May 07, 2025, 07:45:46 PM »
Kevin, the default delimiting character used to be /. It was changed a few years ago when somebody pointed out that when trying to create subfolders on ingest, the / intended to create the subfolder was interpreted as a delimiting character. So the default was changed to =. Why would that be of value? When shooting your baseball game, you could shoot pregame in 100, 1st inning in 101, 2nd inning in 102, etc. When you ingest, create subfolders automatically for each inning. You could use that variable in your caption. It also makes it easier to find that great photo that you took because you know it was taken in the 5th inning. Moving from / to = as the delimiting character opens up so many options for subfolders when ingesting.