View Single Post
  #3  
Old 02-23-2010, 10:35 AM
rlesperance rlesperance is offline
Registered User
 
Join Date: Dec 2007
Posts: 40
Yes ... I have an idle handler that checks SD's status and that calculate the present idletime at each loop. Every 4 minutes SD's status reappears as «running» and the idle time is reseted.

Unfortunately, in my handler the log is created in an application running on my computer and called Indigo. Here is part of the handler, left to you to log your results:


on idle

tell application "SuperDuper!"
if (status is running) then
set idleTime to round (do shell script "ioreg -c IOHIDSystem | perl -ane 'if (/Idle/) {$idle=(pop @F)/1000000000; print $idle,\"\";last}'")
set textToLog to ("SuperDuper is running and idleTime is " & idleTime)
else
set idleTime to round (do shell script "ioreg -c IOHIDSystem | perl -ane 'if (/Idle/) {$idle=(pop @F)/1000000000; print $idle,\"\";last}'")
set textToLog to ("SuperDuper is not running and idleTime is " & idleTime)
end if
end tell

-- Include here where to log the variable textToLog ...

end idle



When left open and inactive, you should see that the computer's idleTime is reseted by SD to 0 every 4 minutes. Since you already use Growl, leaving a sticky Growl message informing the user that the backup has not completed, should be secure enough.

Regards.



Robert
Reply With Quote