@siracusa I feel compelled to suggest a way to get file names of your latest favourites from photos using Shortcuts, after hearing how manual your process was. It is 3 steps 1. “Find Photos” specifying a date and is favourite, 2. “Get Details of Images” getting name, 3. “Show Result” which will open a window with the names which you can then copy from. Here’s a link to the shortcut already made: https://www.icloud.com/shortcuts/efced29002f24bc58a723e9c9fde4a96
And a screenshot of what it looks like if you want to make it yourself.
@siracusa you could be fancier and have the names automatically copied to your clipboard or have it save a text file to disk, or potentially pass the data to your script directly, but I was aiming to keep it as simple as possible to make the barrier to create the shortcut as low as possible.
Last tip, if you want the shortcut to have “current date” as the variable right-click / control-click on the date text.