Systems Reports for XTension

Philippe SCHMUCK philippe-schmuck at orange.fr
Fri Oct 21 01:24:10 EDT 2016


Bob,

I would add a :
try
with timeout of x seconds
   tell application "Finder »
   ….
   end tell
end timeout
on error err
	write log « something wrong happened …«  & err
end try

It can help to avoid any long hang.

Philippe

> Le 21 oct. 2016 à 00:11, Bob Ober <rmober at rcohouses.net> a écrit :
> 
> Xtension stopped working shortly after 1:00 am last night again.
> 
> The Xtension Log for the relevant time is:
> 10/20/16 12:59:40 AM Received Temperature for TEMPERATURE ATTIC of 73.6F (RFX) 
> 10/20/16 1:00:01 AM Received value for Attic North Vent of 71.1 (mysensors) 
> 10/20/16 1:00:01 AM Received value for Attic High of 75.9 (mysensors) 
> 10/20/16 1:00:05 AM Received value for Attic Floor of 74.1 (mysensors) 
> 10/20/16 1:00:08 AM Security unit Sliding Glass Door South battery check received. (W800 IP) 
> 10/20/16 1:00:08 AM Security unit Sliding Glass Door South battery check received. (W800 xBee) 
> 10/20/16 1:00:09 AM Security unit Sliding Glass Door Patio battery check received. (W800 IP) 
> 10/20/16 1:00:10 AM Received value for Attic Floor of 74.3 (mysensors) 
> 10/20/16 1:00:13 AM Scheduled Event: Mount LastHope 
> 10/20/16 1:00:13 AM Executing global script: Mount LastHopeBackup 
> 10/20/16 10:53:02 AM Turning ON only: MOTION Oberhaus 
> 10/20/16 10:53:02 AM Turning OFF only: MOTION Oberhaus 
> 10/20/16 10:53:02 AM Turning ON only: MOTION Oberhaus 
> 
> The called script was:
> tell application "Finder"
>     mount volume "smb://bobober:easymount@10.0.1.1/LastHopeBackup"
> end tell
> 
> block unit "Router" for 4 * hours
> 
> Either the script functioned, or the mount was already mounted because the volume was used to run a CCC backup that was successful.
> I think that the script probably made XTention hang, but what I don't understand is why it unhung when I clicked the mouse to get past the screen saver.
> I updated the script to:
> try
>     tell application "Finder"
>         mount volume "smb://bobober:easymount@10.0.1.1/LastHopeBackup"
>     end tell
>     block unit "Router" for 4 * hours
> on error
>     write log "Disk Failed to Mount" color red
> end try
> 
> Is this likely to fix the hangup?
> 
> Bob Ober
>  
> -- 
> If you haven't already done so, please change my email to   
>   rmober at rcohouses dot net 
> Thanks
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist



More information about the XTensionList mailing list