Share AppleScript via URL Encoding Service

This is a little service I made to quickly share AppleScript with just a URL. The service accepts any selected code from AppleScript Editor (which you can change to all applications if you need them) and puts the properly encoded URL in your clipboard for easy sharing.

To install this service simply download this file and double click to Install.

Here is the prompt you will get:

If you choose to Open with Automator first and see the code, this is what it will look like:

Here is an action shot:

BLOG_ActionShot.png

And the resulting URL in the clipboard is this:

applescript://com.apple.scripteditor?action=new&script=tell%20application%20%22Finder%22%0D%09display%20dialog%20%22Hello%20World%21%22%0Dend%20tell

I would highly recommend combining a shortening service with this workflow, Use one like CloudApp so your resulting URL will look like this:

http://cl.ly/9uYS

Here is some code from Alfred ProTips article for using CloudApp from Shell Scripts if you need help:

Read more about URL encoding at stackoverflow which was my source for this workflow.