Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
APP_PATH=$(ps -xwwp $PPID -o command|grep -o '.*.app') ORIGIFS="$IFS" IFS=$'\n\b' INDEX=0 Y=(top center bottom) for line in $(</tmp/tm_tidy_errors); do CocoaDialog bubble --y-placement "${Y[INDEX]}" --title "Tidy Warning" --text "$line" --icon-file "${APP_PATH}/Contents/Resources/Textmate.icns" & INDEX=$(((INDEX+1) % 3)) done IFS="$ORIGIFS"
From the Design Piracy series on my blog: