Skip to content

Instantly share code, notes, and snippets.

@philgruneich
Created July 31, 2013 01:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philgruneich/6118476 to your computer and use it in GitHub Desktop.
Save philgruneich/6118476 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 and the remaining as the content. This action works for emails with more than a single paragraph.
//Create the following rule at Launch Center Pro:
drafts://x-callback-url/create?text={{[[clipboard]]}}&action=Markdown%20Long
//Add the following rule to Drafts, named Markdown Long:
drafts://x-callback-url/create?text=[[body]]&action=Markdown%3A%20Copy%20to%20Clipboard&x-source=Drafts&x-success={{drafts://x-callback-url/create?text=[[title]]&action=Long%20Clipboard%20Mail&afterSuccess=Delete}}&afterSuccess=Delete
//Add this other rule to Drafts, named Long Clipboard Mail:
launchpro-email://x-callback-url/?to=[[draft]]&subject=&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