Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View Power On Self-Test (and S.M.A.R.T.) results via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View Power On Self-Test (and S.M.A.R.T.) results via AppleScript
Authored by: lynxie on Apr 26, '06 03:30:33PM
Now combine this with a script to check S.M.A.R.T. and it gets even better.
set post1 to do shell script  
"/usr/sbin/system_profiler SPDiagnosticsDataType" 
if post1 does not contain "Result: Passed" then 
display dialog post1 buttons {"OK"} with title  
"Error" with icon stop 
end if 

set post to do shell script "diskutil info disk0 | grep SMART" 
if post does not contain " SMART Status: Verified" then 
display dialog post buttons {"OK"} with title  
"Hard Disk Error!" with icon stop 
end if 


PS: I though I posted this as a reply yesterday but I was in a rush, so maybe I forgot to press the "Submit" button. Else

[ Reply to This | # ]