I have several Photons that run different scripts. One the web IDE, I occasionally (often) forget to switch the active core and update the script to the wrong device. Is there a way to link a script to automatically update to a particular core?
Photons run firmware, not scripts. Unfortunately the Web IDE does not assign a specific device for each project. There are ways of achieving this if you build using “local” methods like Particle Dev, CLI, etc.
Take a look at Products in the console, those can lock to specific devices. Unless it’s mission critical, I would just double check it in the IDE though, since using a product will most likely complicate things worse than the current situation.