Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

pudge
  (email not shown publicly)
http://pudge.net/
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Wednesday November 10, 2004
07:11 PM

Growl

[ #21797 ]

Growl is a notification system for Mac OS X. Pretty cool. You can call it from Carbon or Cocoa or AppleScript, and it comes with Perl and Python and Tcl bindings.

The problem is, the Perl bindings rely on Foundation.pm, which allows Perl programs to speak Cocoa, but Foundation.pm is only available if you are using the same major version and architecture of perl as ships with perl.

After trying for 20 minutes to find out how I could possibly do this using Cocoa or Carbon, I just tried this:

[pudge@bourque pudge]$ sudo gluemac /Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app/
    What is the glue name? [GrowlHelperApp]:
Created and installed App glue for GrowlHelperApp.app (GrowlHelperApp)
[pudge@bourque pudge]$ glue GrowlHelperApp '$g->notify(description => "la la la", with_title => "yo!")'

Of course, it worked.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.