Last active
December 20, 2015 22:28
-
-
Save alessaba/6204732 to your computer and use it in GitHub Desktop.
prowl_reciever
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
import clipboard,sys | |
#you have to set Prowl's custom url to 'pythonista://prowl_reciever?action=run&args=hello%20world' where 'hello%20world is the notification text. | |
#I'll use argv to take advantage of the Pythonista's URL Scheme. | |
text=str(sys.argv[1]).replace('[space]',' ') #the [space] is a space | |
clipboard.set('') | |
clipboard.set(text) | |
print text #Remove after debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment