Skip to content

Instantly share code, notes, and snippets.

@wlonkly
Last active January 22, 2017 00:12
Show Gist options
  • Save wlonkly/fa97d1adae0eb415a03c62298c66a44f to your computer and use it in GitHub Desktop.
Save wlonkly/fa97d1adae0eb415a03c62298c66a44f to your computer and use it in GitHub Desktop.

Send to OmniFocus bookmarklet

Create a new bookmark titled something like "Send to Omnifocus" or "✅", and paste this into the Location field. (Unfortunately for this purpose, but fortunately for less benevolent purposes, GFMD doesn't support javascript: links.)

javascript:q=location.href;if(document.getSelection){d='\n\n'+document.getSelection();}else{d='';};p=document.title;location.href='omnifocus:///add?name='+encodeURIComponent(p)+'&note='+encodeURIComponent(q)+encodeURIComponent(d);

It will open the OmniFocus Quick Add dialog with the title of the link as the task name, and the URL and optionally any selected text as a Note.

Important Testing Note

Bookmarklets don't work on github.com. (STILL.) Test it out somewhere other than this page!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment