Bindings for other languages - benefits of?

The Growl forums have moved to Google Groups, this forum is read only.
Locked
cormullion
Harmless
Posts: 16
Joined: Wed Feb 23, 2005 5:18 pm

Bindings for other languages - benefits of?

Post by cormullion »

I'm now doing some scripting using newLISP, and therefore using 'growlnotify' to do Growl. It works fine (quick, flexible, easy), so I was wondering - what are the benefits of a specific interface (like the ones for Perl, Python, etc) rather than a call to the command-line utility. Faster? More flexible? I'm not a developer-type so I wouldn't know what to ask for...
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

Sorry, I saw this thread, I meant to post, and then it just didn't happen, heh.

So the benefits of a binding over growlnotify. There's a couple that I can hilight:

1) growlnotify isn't installed by default on the users system. This means you have to depend on them doing it. For every binding except the perl bindings, you either can include it in your script, or it gets shipped with Growl and installed with Growl (referring to cocoa/carbon/applescript in the second part here).

2) It makes it easier to talk Growl in the language you prefer.

There's probably more, but I'm having problems remembering the major ones right now.
cormullion
Harmless
Posts: 16
Joined: Wed Feb 23, 2005 5:18 pm

Post by cormullion »

Thanks! I'll ask the newLISP gurus whether it's a difficult or worthwhile job.

As for ease of calling, it's not too hard at the moment:

Code: Select all

(exec (format "/usr/local/bin/growlnotify %s -m \"processing file  '%s'\"" (date) file-name))
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

Ya. Look at the other bindings, most of them aren't that big at all. Heck, the Ruby bindings are 4 k in size altogether, and only one file.
Locked