Didn’t help in the end because Add From Server has ability to add images with their original timestamp (photo timestamp, not the upload date) and the new timestamp (the day/time when you’re processing them with Add From Server).
I would like to state that I’ve found a solution using $alm_loop_count that is not actually listed in the official documentation (even though the author said it was).
Please note that the $alm_loop_count starts with 1, not 0.
I’ve read your email. Since I’m in the middle of something I will have to post debug answers in a while. Thanks for the reply I will do my best to assist you in finding the bug.