Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
#!/bin/bash # -- QS Script Action Info -- # %%%{QSName=Upload File}%%% CD=~/Library/tm/Support/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog if [[ $# == 1 ]]; then { scp "$1" mm:mm/images/pasted URL=http://macromates.com/images/pasted/$(basename "$1") echo -n "$URL"|pbcopy echo -n "$URL"; } 2> >("$CD" progressbar --indeterminate --title "Uploading File" --text "Uploading file to server “macromates.com”…") fi
From the Design Piracy series on my blog: