Project

real-growl

0.0
No commit activity in last 3 years
No release in over 3 years
A Growl notification library that uses native c bindings to interact with GrowlApplicationBridge rather than Growl's network API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

real-growl

Description

A Growl notification library that uses native C bindings to interact with GrowlApplicationBridge rather than Growl's network API.

Synopsis

rg

>> require 'real_growl'
=> true
>> rg("Check out", ["Real", "Growl"], :icon => "/path/to/a/picture.jpg")
>> rg("Google", ["Real", "Growl"], :icon => "http://www.google.com/logos/stpatricks_d4gwinner_eo09.gif")
=> nil

>> RealGrowl.sticky = false
=> false
>> RealGrowl.priority = 3
=> 3
>> RealGrowl.icon = "/the/path/cool.png"
=> "/the/path/cool.png"

Custom Application

>> require 'real_growl'
>> my_own_application = RealGrowl::Application.new("AppName")
=> #<RealGrowl::Application:0x1018eb6b8>
>> my_own_application.notify(:title => "Title", :description => "Desc", :priority => 0, :sticky => true, :icon => "/path/to/image.png")

Extras

>> RealGrowl.installed?
=> true
>> RealGrowl.running?
=> true

TODO

  • Add executable script
  • Enable growl callbacks

Requirements

INSTALL

  1. Download latest Growl SDK (http://growl.cachefly.net/Growl-1.3.1-SDK.zip)
  2. cp -r /Volumes/Growl\ 1.3.1\ SDK/Frameworks/Growl.framework /Library/Frameworks
  3. gem install real-growl

INSTALLATION HINTS

Make sure that the Growl.framework is either 32bit or the 64bit depending on the version of MacOS X installed and the kind of machine it is installed on.

Executable Usage

Uses slop to easily call a Growl notification with options (http://github.com/injekt/slop).

Run

$ realgrowl 
$ realgrowl -t "New alert"
$ realgrowl -d "A new notification of something!" -t "New alert"

Contributors

  • basicxman (Growl Executable)