If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I use recurring event in iCal which executes an AppleScript to do much the same thing...
Code:
tell application "GrowlHelperApp"
set myAllNotesList to {"SMART Test"}
register as application "iCal Scripting SMART Check" all notifications myAllNotesList default notifications myAllNotesList icon of application "iCal"
notify with name "SMART Test" title "S.M.A.R.T." description "Checking main drive SMART status..." application name "iCal Scripting SMART Check"
end tell
set status to do shell script "/usr/sbin/diskutil info disk0 | grep SMART"
if status is " SMART Status: Verified" then
tell application "GrowlHelperApp"
notify with name "SMART Test" title "S.M.A.R.T." description "SMART status - OK" application name "iCal Scripting SMART Check"
end tell
else
display dialog "A hardware problem has been detected on your hard drive:" & return & return & status
end if