in an existing project, I need to restructure my panel somewhat and I need to assign a template to images and videos that had not assigned any template so far. Is there a quick way to do this, without going through all the content files manually? Like, could Kirby not assign this automatically somehow, once there is a new File Blueprint that matches the file type? Am I missing something?
Is there any documentation on how such scripts can be written? I guess I have a vague idea that I will have to loop over every file on my site and update its template value, but where do I need to place the script? How do I run it?