Author Topic: Time Based Code Replacement  (Read 1153 times)

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Time Based Code Replacement
« on: March 28, 2023, 04:36:01 AM »
Hi team!

I'm trying to come up with a workflow for code replacements based on time capture.
So far I managed to make it work with ={hour0}{minute:0,1}= code, resulting in say "195" code for 19:50 and copy images into a folder that corresponds with that code, and within those 10 minutes of time.

However this works only in 10min blocks meaning if I shoot one speaker at 19:53 and another one at 19:57 they both fall under code 195, unless I set codes for full minutes, in which case if I understand correctly, I would need to write codes for every minute for it to work

1950 Speaker One
1951 Speaker One
1952 Speaker One
1953 Speaker One
1954 Speaker One
1955 Speaker Two
1956 Speaker Two
1957 Speaker Two


So the question is... is it possible to make codes replacements autofill the range when you tell that code 1950 and up is Speaker One, but from 1955 it is Speaker Two. Sort of like custom variable that keeps its value (replacement) until new condition is met and replacement is... replaced with new value.

Or is it too much?

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Time Based Code Replacement
« Reply #1 on: March 28, 2023, 05:01:59 AM »
However, here is a great prompt to make ChatGPT do it for you

Quote
Generate a list from 1930 to 1955 with corresponding speakers, separated by tab. From 1930 and up is Speaker A, From 1937 and up is Speaker B, From 1942 and up is Speaker C, From 1951 and up is Speaker D

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Time Based Code Replacement
« Reply #2 on: November 19, 2023, 07:08:59 AM »
So, after awhile I managed to make it happen

Rooms with speakers go into folders, and session times are set in excel in 10 minute increment

then the code
Code: [Select]
={foldernum}{hour24}{minute:0,1}= ={foldernum}{hour24}{minute:0,1}#2=
creates a replacement reference for each talk:

Code: [Select]
// 10:00-11:00 — IPO Insights

101100 IPO Insights Room 2
101101 IPO Insights Room 2
101102 IPO Insights Room 2
101103 IPO Insights Room 2
101104 IPO Insights Room 2
101105 IPO Insights Room 2

Still working on it, but it works..

Thanks to Jeff for opening the Pandora's box of folder based magic )

Offline Adion

  • Newcomer
  • *
  • Posts: 7
    • View Profile
Re: Time Based Code Replacement
« Reply #3 on: February 24, 2024, 11:55:31 AM »
Hi! Can you show me the code replacement file that you made? I would like to use hours and minutes, but I can't figure out how to do it

Offline Max Lemesh

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Time Based Code Replacement
« Reply #4 on: February 26, 2024, 01:52:54 AM »
it is right above your post :)