Created
November 14, 2012 12:31
-
-
Save pawelratajczak/4071839 to your computer and use it in GitHub Desktop.
MDLink
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
# Simple Python script. You can copy url from Safari to markdown format and paste to Byword. | |
# e.g [My Blog](http://www.pawelratajczak.pl) | |
import markdown | |
import clipboard | |
import webbrowser | |
import urllib | |
a = '[]' | |
b = '(' | |
c = ')' | |
imput_file = clipboard.get() | |
link = imput_file | |
webbrowser.open('byword://new?text=' + a + b + link + c) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment