Activate 'hidden' features in the Gmail Notifier
Sep 19, '05 09:20:00AM
Contributed by: Anonymous
I took this right off of this post on the Google Blog, and I thought it was pretty cool. The following is taken directly from the provided link...
As some clever users have already discovered, the Gmail Notifier for Mac OS X we launched last week can do a little bit more than meets the eye. A couple interesting features:
- Fetch mail for only one Gmail Label
This is very useful if you only want to be "notified" about certain emails. For example, to only fetch mail with the label "ImportantStuff," run the following command from the Terminal:
defaults write com.google.GmailNotifier Label -string "ImportantStuff"
- Extend the Notifier using plugins
The Gmail Notifier supports plugins written in AppleScript, or full-blown Cocoa Bundles in Objective C. Details about the Objective C plugin API can be found inside the Gmail Notifier application bundle in the required header file, GGPluginProtocol.h (Control-click Gmail Notifier.app -> Show Package Contents -> Contents -> Headers).
AppleScript plugins are written by simply implementing a handler like this:
on NewMessagesReceived(messages, fullCount)
-- Your code goes here...
end NewMessagesReceived
To install, simply copy the script (plugin) to Library/Application Support/Gmail Notifier (create the directory if it doesn't exist), and restart the Gmail Notifier. An example of a great plugin for the Gmail Notifier for MacOS X is the Gmail+Growl plugin, which sends Growl notifications when new mail arrives.
[robg adds: I haven't tested these extensions to the notifier, but there's no reason to think they won't work, given the source!]
Comments (10)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050914172019276