Print-debugging scripts with Growl

Written . Tagged OS X.

Sometimes I find myself writing scripts in contexts where you can’t easily debug just by printing to STDOUT.

Rather than messing with a log file that you then have to look for/open (I often touch /tmp/wood), this (suggested by Johan) works if you’ve got Growl with growlnotify. Drop into a shell and:

1
growlnotify -m 'Still executing!'