I was trying to process a pile of images to open, move a layer into a new template, resize it, change one of two text layers based on the filename of the source image, then save the template as that name with a "CSTM" suffix to a different folder.
Even though I got everything to work (usually), I was still running into random issues as it was trying to process all the files in the folder. Likely something I was doing wrong, but roughly three images would work fine, then the fourth would hang on a line of code that had worked flawlessly on the other three (all images were based off the same template so seems like they should have all worked). Repeated attempts on a single file would work sometimes, sometimes not, before it even got to the type. It was baffling. So I just did them by hand. Took less time than fighting with the script for another day.
I didn't think swapping over to JavaScript would make things necessarily magically start to work, just figured JS support would be more robust/consistent than AS.