Dear WeatherCat AppleScript fans,
Those who have been "dabbling in AppleScripts" since their humble beginnings with LWC may recall that all of the ones that run continuously check to see if WeatherCat (then LWC) is running before making a request. This in principle should allow you to quit WeatherCat without having the scripts disturbed and restart WeatherCat with all the AppleScripts still patiently waiting to go back to work.
Unfortunately, times have changed. The number of scripts potentially requesting data has increased. With each one, there is an increasing chance it will make a request while WeatherCat is shutting down. The trouble is that an AppleScript cannot know if an application is in the process of shutting down; only if there is no such process running. If an AppleScript makes a request while WeatherCat is still running, but has shutdown the AppleScript interface, the Finder will wait the specified interval and try the request again. That will cause WeatherCat to be launched unexpectedly
Further complicating things is that if you use my
Start WeatherCat Scripts launcher. It deliberately puts gaps of 10 to 15 seconds to reduce the load on
WC AppleScript Tags Processor. Since several of the scripts collect data once a minute . . . it is going to be much harder to try to "stealthfully" quit WeatherCat without some AppleScript inadvertently restarting it.
Now that I've added the
Start WeatherCat Scripts and
Stop WeatherCat Scripts which work well as far as I can tell, I recommend taking the opposite strategy. If you need to quit WeatherCat, bite the bullet and shut down all the AppleScripts before hand. It is easy enough to do. When you start up WeatherCat, reverse the procedure and start up all the AppleScripts. It is a bit slower, but it is much more positive and trouble-free.
Cheers, Edouard