Created
April 8, 2014 17:45
-
-
Save mygeekdaddy/10161842 to your computer and use it in GitHub Desktop.
CliptoDrafts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Summary: Takes copied text and creates new task in OmniFocus | |
#By: Jason Verly | |
#Rev: 2013-02-04 | |
#Rev Note: Added Page Title & URL to clipped txt | |
import webbrowser | |
import clipboard | |
import urllib | |
import console | |
import sys | |
title = sys.argv[1] | |
url = sys.argv[2] | |
task = console.input_alert('Task', 'Enter task description') | |
task = urllib.quote(task) | |
note = clipboard.get() | |
full_note = ''.join([title,'\n\n', url, '\n\n', note]) | |
full_note = urllib.quote(full_note.encode('utf-8')) | |
webbrowser.open('drafts://x-callback-url/create?text=' + full_note) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment