OSX Automator script for pasting to Pastebin.com

I found this cool Automator script for OSX that allows you to paste text from your selection to Pastebin.com.

The steps provided in the original article was a bit difficult to follow at first so here is a visual walkthrough how to do it:

Start the Automator application

image

Create a new “Service” application

image

Drag a “Run AppleScript” action to the workflow workspace

image

Paste in the code from https://gist.github.com/761482 into the “Run AppleScript” code window

image

Then I created a “Copy to Clipboard” action

image

Then I made sure that the actions are “Service receives selected text in any application” and “Input is entire selection” with “Output replaces selected text” unchecked.

image

Finally I saved the file as “Pastebin.bin.workflow”.

image

when you select some text and right-click you get a nice option of sending the selected text to Pastebin.com:

image

Many thanks to Marc Abramowitz for his very nice blog entry. I haven’t been looking at Automator before but now I think I will automate a lot of tasks in OSX Winking smile.

0 comments:

Post a Comment