I am writing a very basic AppleScript program that I want to always be running in the background. Is the best way to do this just to start the script and have an infinitle loop in it? My program is merely checking if another program is open and if it is it is starting another program. For example, if program A is opened then program B is started.
Is there a better way to write this other than just putting my entire program in a neverending repeat loop?
Thanks
Is there a better way to write this other than just putting my entire program in a neverending repeat loop?
Thanks