24.05.2010 15:06 Uhr, Quelle: The Unofficial Apple Weblog

Sort your crashlogs with Hazel

Filed under: Odds and ends, UNIX / BSD I've been on a bit of a Hazel kick lately. I wrote a short shell script that will sort my Crash Logs. #!/bin/sh ### Get the name of the app APP=`/bin/echo $1 | /usr/bin/sed 's#_.*##g'` ### make a directory /bin/mkdir -p "$APP" ### move the log into the directory /bin/mv -n "$1" "$APP" ### done! exit 0 Add this rule to the folder ~/Library/Logs/DiagnosticReports. The rules above tell Hazel to only run on crash logs older than today, in case you need to do anything with it such as send it to the developer.

Weiterlesen bei The Unofficial Apple Weblog

Digg del.icio.us Facebook email MySpace Technorati Twitter

JustMac.info © Thomas Lohner - Impressum - Datenschutz