The script didn’t come through with your example base, but I can copy it easily enough from the thread that you linked. However, my big question is this: would you like to run this script manually (via a Script app), or automatically (via an automation)? The latter option will actually require some new code, and would result in a total of three automations.
I wish this were a quick fix, but because of the amount of time required to write the new code, modify the existing code, and test everything to match your criteria (it’s not as simple of a script as one might assume), I would need those lollipops you offered to be the type accepted as currency by most banking institutions. :slightly_smiling_face: DM me if you want to proceed.