Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created April 8, 2014 17:47
Show Gist options
  • Save mygeekdaddy/10162151 to your computer and use it in GitHub Desktop.
Save mygeekdaddy/10162151 to your computer and use it in GitHub Desktop.
OmniFocusScreen
#Summary: Takes copied text and creates new task in OmniFocus
#By: Jason Verly
#Rev: 2013-02-02
import webbrowser
import clipboard
import urllib
import console
task = console.input_alert('Task', 'Enter task description')
task = urllib.quote(task)
note = clipboard.get()
note = urllib.quote(note) #.encode('utf-8'))
#webbrowser.open('omnifocus:///add?name=' + task + '&note=' + note)
#time.sleep(3)
#webbrowser.open('googlechrome://')
print(task + '\n' + note)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment