Trixology
WeatherCat => WeatherCat Integration => Topic started by: elagache on December 10, 2013, 08:16:29 PM
-
Dear WeatherCat AppleScript fans,
As part of the "fun" of being a WeatherCat sekret agent, I've had a few early morning crashes of WeatherCat which were caught by the watchdog process so that WeatherCat restarted. Unfortunately, the watchdog process doesn't know about my AppleScripts and vice versa. Since the AppleScripts are normally started after WeatherCat has settled down, they never run into a problem of requesting data from WeatherCat before WeatherCat can respond.
It seems that there is some weird voodoo going on when an AppleScript requests something from an application and that application doesn't respond. In the past, WeatherCat has occasionally become hung if launched to respond to an AppleScript. In this case, I had some even stranger happen: I got two shutdown growl notifications from WC Status Growler - when only one process of the script appeared to be running. (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/question_mark_confused.gif)
So it seems to me to be a prudent precaution. If WeatherCat has crashed or become hung in any way, manually shutdown and restart the AppleScripts. You can do this either by shutting down each script separately or running the Stop WeatherCat Scripts AppleScript.
These AppleScripts and the AppleScript system in general seems a little fragile, so as a general rule: caution is the better part of virtue!
Cheers, Edouard [cheers1]
-
Hi Edouard
This one I haven't had any problems with but I do have it set to do the following in the the Advanced part of WeatherCat Preferences Startup/Shutdown Actions see attached:
cheers
[cheers1]
-
Howdy Randall,
This one I haven't had any problems with but I do have it set to do the following in the the Advanced part of WeatherCat Preferences Startup/Shutdown Actions see attached:
Yes, that is the way to get WeatherCat to launch and shutdown the AppleScripts if . . . . everything goes normally.
My problem was caused by Stu's clever watchdog process that keeps an eye if WeatherCat crashes. Being a selfish feline [cat] (just kiddin' Stu), if WeatherCat crashes, it isn't polite enough to warn my AppleScripts in advance.
Now the obedient watch dog process steps in and restarts WeatherCat, but it doesn't know about my AppleScripts either.
It appears that all this commotion somehow messes with the karma of my AppleScrips from time to time resulting in - unexpected behavior! :o
Honestly, my policy after a WeatherCat crash is to shutdown WeatherCat manually which should shutdown the AppleScripts if you have them set up as you do. However, that is exactly what didn't happen in my case. WC Status Growler got itself into some sort of a hang state. I didn't have to force quit it, but when I quit it "manually" it appeared to be running twice. I still don't have any idea how that could happen.
So in summary: caution is the better part of valor!
Cheers, Edouard [cheers1]
-
Hi Edouard
Well maybe when WeatherCat relaunched using the WatchDog and if you have it set up to launch your scripts on restart maybe it launched WC growl again and that's why you had 2 of them running I think that happen to me before also
cheers
[cheers1]
-
Dear Randall and WeatherCat Scripters,
Well maybe when WeatherCat relaunched using the WatchDog and if you have it set up to launch your scripts on restart maybe it launched WC growl again
But, but, but . . . . . ya' can't! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/scratch_head.gif)
If a Mac application is already running, the Finder is supposed to just bring it to the foreground. Mac's have been that way since at least 1988 when I got my first Mac II.
Now you may be correct that somehow a second process of WC Status Growler was launched - but I have no idea how that could happen!
Oh well, (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/shrug_shoulders_confused.gif)
Cheers, Edouard
-
Edouard
Gremlins [biggrin]
it did some how [goofy]
had two of them running at the same [banghead]
cheers
[cheers1]