Skip to content

Instantly share code, notes, and snippets.

@philgruneich
Created July 31, 2013 00:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philgruneich/6118460 to your computer and use it in GitHub Desktop.
Save philgruneich/6118460 to your computer and use it in GitHub Desktop.
one-tap send clipboard message in markdown as an HTML email using Drafts and Launch Center Pro. This action takes the first line as recipients, second line as subject and moves your content around using the clipboard. It only works for short emails that use no more than a single paragraph.
//Create the following rule at Launch Center Pro:
drafts://x-callback-url/create?text={{[[clipboard]]}}&action=Markdown%20Short
//Add the following rule to Drafts, named Markdown Short:
drafts://x-callback-url/create?text=[[line|3]]&action=Markdown%3A%20Copy%20to%20Clipboard&x-source=Drafts&x-success={{drafts://x-callback-url/create?text=[[line|1]]%0A[[line|2]]&action=Short%20Clipboard%20Mail&afterSuccess=Delete}}&afterSuccess=Delete
//Add this other rule to Drafts, named Short Clipboard Mail:
launchpro-email://x-callback-url/?to=[[line|1]]&subject=[[line|2]]&body=[[clipboard]]
//You're good to go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment