ai architecture artificial-intelligence Book Review business career Compliance Content Corporate Life Customer Support cybersecurity data data-science DevOps education entropy fitness garmin leadership Licensing marketing microservices Monitoring music Observability Operations Partnership philosophy Product Management Products saas Sales Security software-development technology User Experience

AppleScript Crash notifier

Published by

on

Say you’re on OSX and working with some C++ software that might crash when bugs are found… and say you don’t want to tail or search the voluminous logs just to know whether there’s crashes to investigate. The crashes will show up in the Console application, but it destroys your performance to leave it open.

The programs I care about all have names starting with XM. This one-liner pops a notification and then opens the crash report in Console, which I can close when I’m done.

Jacks-MacBook-Pro:SCM-Framework jackcoates$ crontab -l | grep Crash
*/60 * * * * find ~/Library/Logs/DiagnosticReports -cmin -60 -name xm* -exec osascript -e ‘display notification “{}” with title “Extremely Crashy!”‘ ; -exec open {} ;


Discover more from Monkeynoodle.Org

Subscribe to get the latest posts sent to your email.