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 27, '06 07:11:01AM
Oops, I think that's because there is supposed to be a tab between "SMART Status:" and "Verified", it looks like the tab got stripped away somehow. But don't hold me to my word as I don't have a mac to test this right now. I'll reply with an updated version as soon as I get back to my mac. You can try to replace the fourth line from bottom with this (note the longer blank between status and verified):
if post does not contain " SMART Status:	Verified" then 
Sorry...

[ Reply to This | # ]
View Power On Self-Test (and S.M.A.R.T.) results via AppleScript
Authored by: lynxie on Apr 27, '06 01:57:23PM
Here we go, this seems to work well:
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 "Verified" then
	display dialog post buttons {"OK"} with title 
		"Hard Disk Error!" with icon stop
end if
Apologies for the previous mistakes and this long thread...

[ Reply to This | # ]
View Power On Self-Test (and S.M.A.R.T.) results via AppleScript
Authored by: markformac on Apr 27, '06 09:36:24PM

it worked as far as not receiving the stop sign for all S.M.A.R.T. tests. Only time will tell if it works for the error prompts. :)

---
Mark Brooks



[ Reply to This | # ]