Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Auto sends highlighted text to your iphone from any application, use in a service workflow
To be used as part of an automator script, install as a service.
Sends the highlighted text to your iphone using prowl
import sys
from prowl import Prowl
import Growl
notifier = Growl.GrowlNotifier('Prowl', ['status'])
p = Prowl()
image = Growl.Image.imageFromPath('/path/to/image')
note = ''
for f in sys.stdin:
note = note + f
note = note[:1000]
try:'Mac','Note', note)
notifier.notify('status','Prowl sent', note, image)
note = 'Error sending: ' + note
notifier.notify('status','Prowl error', note, image)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment