So we have folders like "..\Support Files\Scripts\Startup" and "..\Support Files\Scripts\Shutdown" to run scripts in either of these cases. Is there a way to run them when we change our focus window to another application? I want to create seamless workflow between After Effects and Unity, and I was thinking to run my scripts whenever that happens. I just need somehow to listen for some sort of Event of AEs window...
or maybe when I activate Unity window I could send "run scripts" from Unity to AE via cmd...