How do you run a python script when an app runs
I was wondering if it is any way you can run a certain python code I wrote when an app runs. I don’t want to keep some script running all the time on my computer that checks if a certain app has been opened, so that’s why i have this question. I want my program to run when an app opens, do its job and be done with it.