i tried to use growl via appscript but not working

The Growl forums have moved to Google Groups, this forum is read only.
Locked
osamu
Harmless
Posts: 3
Joined: Sat Apr 07, 2007 1:36 pm

i tried to use growl via appscript but not working

Post by osamu »

I tried to use appscript to growl something, not working , no error message loged. (Appscript's the applescript binding of python, u can use python instead of applescript.)

I guess the problem's with growl, since i've done something with appscript to control illustrator and photoshop. It worked fine.

Code: Select all

from appscript import *
growl=app('GrowlHelperApp')
growl.notify(with_name='not working',title='some title',description='for some reason',application_name='daddy')
User avatar
Diggory
Growl Team
Posts: 129
Joined: Sat Dec 04, 2004 12:17 pm
Location: London

Post by Diggory »

You need to register before sending any notifications.

http://growl.info/documentation/applescript-support.php
osamu
Harmless
Posts: 3
Joined: Sat Apr 07, 2007 1:36 pm

Post by osamu »

ok, i used register,it worked, but notify still not working :o

Code: Select all

from appscript import *

growl=app('GrowlHelperApp')
allNotificationsList=["Test Notification", "Another Test Notification"]
enabledNotificationsList=["Test Notification"]
growl.register(as_application="PyGrowl",all_notifications=allNotificationsList,default_notifications=enabledNotificationsList,icon_of_application="Script Editor")
growl.notify(with_name='Test Notification',title='Notification1',description='Time for supper!',application_name='mommy')
growl.notify(with_name='Another Test Notification',title='Notification2',description='Time for work!',application_name='daddy')
User avatar
bgannin
Growl Team
Posts: 1817
Joined: Thu Dec 02, 2004 8:11 am
Location: ..here
Contact:

Post by bgannin »

Shouldn't your application name not be "mommy" or "daddy" but instead "PyGrowl", as that's what you've registered?
Try my software!

#define ADIUMX pimp //by me
#define QUESTION ((2b) || (!2b))
Have you hugged a programmer today?
osamu
Harmless
Posts: 3
Joined: Sat Apr 07, 2007 1:36 pm

Post by osamu »

lol, nicely worked, thx
Locked