Skip to content

Instantly share code, notes, and snippets.

@alessaba
Last active December 20, 2015 22:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alessaba/6204732 to your computer and use it in GitHub Desktop.
Save alessaba/6204732 to your computer and use it in GitHub Desktop.
prowl_reciever
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