Firefox and Growl
Posted 2004 Dec 27I was able to hack minimal Growl support onto Firefox. I can’t stand the default Firefox download manager and I thought Growl is the perfect way to inform me that a downloaded has completed. So, I cobbled together a little plugin.
Unfortunately, I had to write a little shell script to take the message (in this case, the name of the file being downloaded) as an argument, since growlnotify reads from STDIN. Even more unfortunately, there seems to be a bug in nsIProcess<pre><code> #!/bin/bash cat ~/Documents/growl.txt | /usr/bin/growlnotify "Download Complete" </code>See? Told you it was a hack. To make this actually work, nsIProcess.run needs to be fixed and I need a better way to actually interface with growl (besides a shell-script to growlnotify…) Perhaps a javascript binding?
karl
2005 Jan 11 at 22:56Well, I’m the lead Developer for growl and I think this is a great idea, I already have Growl support for Safari and Shira and hear rumors of Omniweb support so this will round out the Growl goodness. Since I believe the xpi api is C, you should be able to include the CoreFoundation headers to build a plugin that only works on the mac, but can use the Growl Carbon headers directly.
If your not up for some C action, you can use Perl, or even Java to get at Growl. The Growl.java class encapsulates all the work of talking to Growl so you just have to write a few lines. Only problem with that is it would mean the Java Runtime for FireFox would be always loaded, and that might not be the best for performance.
Last but not least there is good ole AppleScript. You could perhaps write an applescript that takes a specially formatted version of the info, parses it then notifies with growl. Something like “New Porn Site Found:|:Porn site lives at http://newPornSite.com:|:http://newPornSite.com/favicon.png And with that you’ve gotten all teh info that’s useful, and made a pretty dumb simple seperator out of:”
P.S. I liked your version of Kubrick so much, I decided to gank most of it. :-)