Create a gist now

Instantly share code, notes, and snippets.

Growl with Jython
# -*- coding: utf-8 -*-
# Copyright : (c) SAEKI Yoshiyasu
# License : MIT-style license
# <>
# last updated: 2011/06/18
import sys
from info.growl import GrowlUtils
from javax.imageio import ImageIO
notificationName = "My Message"
growl = GrowlUtils.getGrowlInstance("My Growl")
growl.addNotification(notificationName, True)
growl.sendNotification(notificationName, "Title", "Body text")
icon ="/images/duke.gif"))
growl.sendNotification(notificationName, "Hello", "World", icon)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment