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