# PASTEBIN WORKFLOW

You can use the pastebin.sh script in the OS X Services menu.

First, in order to use the workflow as-is, we must make sure the script is available. The workflow
assumes the pastebin script is in `/usr/local/bin/pastebin`. You can alias the script:

     $ ln -s ~/path/to/script/pastebin.py /usr/local/bin/pastebin
         
Obviously, replace `path/to/script` (and/or `/usr/local/bin/`) with the appropriate paths.

Next, you need to place the workflow where the Services menu can see it. Simply double-clicking the
workflow and saving it should suffice.If you want to do it manually, move the workflow to
`~/Library/Services/`. You may have to open the workflow and resave it in order for the Services
menu to be aware of the new workflow.

While you have the workflow open, you can tweak it. Currently, the workflow passes `-c` in order to
paste the text being posted to pastebin to your clipboard first. This is useful if you are using a
clipboard manager like [Jumpcut][jc].

[jc]: http://jumpcut.sourceforge.net/

After the workflow is installed, you need to make sure it is active. Open *Keyboard Shortcuts* in
*System Preferences*, then find the "Paste to pastebin.com" service under Services in the left menu.
Make sure there is a check next to this service.

Now you can select text in any OS X application and use the pastebin service.
