Help! More Weirdness or I'm blind...
George Handley
ghandley at kc.rr.com
Fri Oct 13 11:06:01 EDT 2017
Dear James and Ger,
What my script wasn't doing was working, meaning loading those var names with data.
I continued wrestling with it to the wee hours and solved it another way by filling the vars as below instead of the way I was, but Ger, you immediately caught the real problem that would have caused the 1st code to work, if I had only seen the lack of an "s" in all the var names. That was the problem totally. I stumbled into another solution by not referencing the vars at all.
I don't care what type of writing a person performs, they shouldn't expect to do their own proofreading as well. :-)
I replaced this 1st line below that didn't have the needed extra "s" in "sensors" to what follows 2nd below:
set RegFailSensorsVoice1 to (Get Unit Property "RegFailSensorVoice1" from unit "Home Status Report Data")
say (Get Unit Property "RegFailSensorsVoice1" from unit "Home Status Report Data") rate 140 intonation -100 & "[[slnc 3000]]"
James, thank for the use of lists advice. I will print it out and see if I can learn what sounds like a much more efficient way. I'm sure there are lots of areas in my code that would benefit. I have been spoiled by this AppleScript as it is pretty forgiving because it is basically a high level "Basic" language. But because the processors are now so darn fast, it hasn't really made any difference.
For instance, this code I've been working on for a good 10 months that thoroughly checks all my I/O reporting the realtime health of my system, and even sends me a more elaborate structured 3 color report fashioned email if either of us is out of our geocircles, but the point is, it does all this in less than a second! Now if everything it checks all goes South, it will take almost 2 minutes of time to "Say" the summarized code of what it has pinpointed.
I sure thank both of you for your help this morning.
Best wishes,
George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20171013/0492450f/attachment.html>
More information about the XTensionList
mailing list