I've wrote this:
applicationIcon=Growl.Image.ImageFromPath="/Users/Fn/Pictures/
skull4.gif"
applicationName = "emesene"
notifications = ["online",
"offline","newMsg","receiveTyping","newMail","offMsg","initMail"]
notifier = Growl.GrowlNotifier(applicationName, notifications,
applicationIcon)
notifier.register()
but now the icon in preference panel is blank and all notifications
unabled :S
about the notification icon:
myIcon=Growl.Image.ImageFromPath="/Users/Fn/Pictures/
skull4.gif"
notifier.notify("receiveTyping",title,msg,icon=myIcon)
if I use this method the notification doesn't work
On 4 Gen, 00:06, Peter Hosey <[email protected]> wrote:
> On Jan 03, 2009, at 13:50:26, Fn wrote:
>
> > imageFromPath ="emesene-logo.png"
>
> Simply assigning to your own local variable cannot work. This line
> merely creates a string and names it “imageFromPath”. It does not do
> anything else, including load an image.
>
> You need to get an image object by calling Growl.Image.ImageFromPath,
> passing the *absolute* path to the file ('emesene-logo.png' is a
> relative path). You should then assign that image object to a name.
>
> > this is my call to growl:
>
> > notifier.notify("newMsg", title, msg, icon=xxxxx)
> > but it's doesn't work
>
> That's because there's nothing named “xxxxx”. If you passed your
> “imageFromPath” variable here, that didn't work either, because all
> you did was pass a string that doesn't contain image data.
>
> Replace xxxxx with the name of the image object.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Growl Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/growldiscuss?hl=en
-~----------~----~----~----~------~----~------~--~---