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


Click here to return to the 'View Power On Self-Test 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 results via AppleScript
Authored by: stop_a on Apr 25, '06 05:38:50PM
I ran into this same problem with my iMac about a month ago. I created a very similar script, which I compiled and enabled as a start-up item. The code:

set post_result to do shell script "/usr/sbin/system_profiler SPDiagnosticsDataType"

if "Passed" is in post_result then
	do shell script "/usr/bin/logger -p local0.notice 'post_check2 found no errors.'"
else
	display dialog post_result
	do shell script "/usr/bin/logger -p local0.alert 'post_check2 found POST errors.'"
end if
The differences: The logger command dumps a message into /var/log/messages, which I can check and see that it's running successfully. I also like having the POST results displayed right away if there's a problem. No need to go to system profiler to see them, just jump in and troubleshoot!

[ Reply to This | # ]