Bookmarklet for adding Markdown Links to PlainText Lists

February 02, 2014

Bookmarklet for adding Markdown Links to PlainText Lists → via @_patrickwelker

This is a follow-up to “How I Handle My RSS Queue On The Mac And iOS”. When I wrote the post I struggled to find a good solution for filing away RSS articles on the iPhone since no RSS reader offers support for a kind of advanced automation (aka x-callback-url support).

This post is about a bookmarklet which enables you to send an inline Markdown link to Launch Center Pro which prompts you to select one of your plain text lists and prepend or append the link.

Previously, I’d open the article in Safari and press my bookmarklet for saving an inline markdown link to my clipboard. Then I’d open up Drafts and send the link to one of my plain text lists. That might read like a few taps but it feels slow and tedious.

I love my list workflow on the Mac…


… but I really struggle with getting automation done on my iOS devices.1 Anyway, I managed to port my filing browser links workflow to TaskPaper. I now have a bookmarklet that I can fire up in Safari and end up with this:


What this does is it sends the URL as a Markdown Link to one of my Taskpaper lists formated like this:

- [Automating iOS: A Comprehensive Guide to URL Schemes and Drafts Actions](
- [Share your clipboard among your devices with Command-C](
- [SearchLink for Editorial](

I struggled at some point, but iOS automation wizard Eric Pramono from Geeks With Juniors was kind enough to help me out on Twitter. Although I did my own research and Eric gave me a working example which closely resembled what I tried to accomplish, there where still some bolders in my way.

The code:

Here’s the end result:

Decoded view:

	- [ document.title]('location.href ')
&path=/Todo/&name=[list:TaskPaper Lists|Inbox|Today|iOS Automation|OS X Automation|OS X Organization|RocketINK|Web Development].taskpaper');

Basically you can copy everything until line 3 (and don’t forget to remove the line-breaks). Then customize the script and encode it the part you just edited.

Encoded view:


I struggled a bit since Launch Center Pro wouldn’t accept my list. The problem was that the URL title (more precisely the spaces in a title). I tried double and triple encoding it, but failed. Adding the URL encoder helper `` around the fetched document.title and double-encode them proofed to be the solution.


To keep it simple, here’s an older YouTube video on how to install bookmarklets on iOS:

If you use iCloud to sync your bookmarks you can modify the code to your liking and copy it to a new bookmark.


Bookmarklet for getting an inline Markdown link into Drafts:


Bookmarklet for getting an inline Markdown link into Drafts and use the apps “Copy to Clipboard” action:


Bookmarklet for getting an inline Markdown link into the clipboard via Launch Center Pro:

  1. This is why rarely see a post about Pythonista or Editorial on this blog. I have some basic actions, but they are not what I envision or to buggy to post here.

comments powered by Disqus

Related Posts