Google Notifier for Mac for Multiple accounts.

Here are some of the hacks I’ve found for Google Notifier for Mac to make it usable with multiple accounts.

One problem, however, is that alerts from simultaneous arrival of messages from multiple accounts overlay each other on the screen. Although this is not generally a problem, it is irritating at login. Feel free to leave comments suggesting how to move the alert window for each instance to a different location!

First, duplicate it:

  1. Duplicate the Google Notifier application.
  2. Select the duplicate, control-click on its icon, and choose Show Package Contents from the pop-up menu.
  3. Navigate into Contents, and then open Info.plist in an editor.
  4. There is a property in that file called CFBundleIdentifier, with the value com.google.GmailNotifier. Change the property’s value to com.google.GmailNotifierWhateverYouWant instead.
  5. Save your change and quit the editor.

Second, identify it:

To solve that, you’ll need the Developer Tools installed. If you havethem, inside the Gmail Notifier app (the copy you made), open Contents-> Resources -> English.lproj -> MainMenu.nib with InterfaceBuilder. Double-click on the BothMenu item and add an Itemmyname@mysociety.com. Save your work, and you’re done.

In addition, I change the color of a couple key Gmail icons for each additional account found in the same Resources folder as above: unread.png and GmailIcon.png (the icons are red, but changed them to blue in the duplicate copy. Pick your favorite color. I used SeaShore, but pick your favorite app to edit the png files).

Third, secure it

Start each version of the Notifier, then for each one pull down the Notifier menu (either Calendar or Gmail), hold down Command and Option, and click Preferences on the menu. You’ll see a hidden settings editor. Enter SecureAlways in the Key field (upper and lower case must be entered as shown) and 1 in the Value field, then click Set. Quit Notifier and start it up again. From now on, all connections with both Gmail & Gcal will be https. Thanks to this comment on the O’Reilly blogs for this trick!

There are a couple other tweaks:

You can use your multiple notifiers to access the same account, but have each one return a different label.

If you only want the notifier to fetch mail with a certain label, you can create a filter. To do this, enter “Label” in the key field and enter the name of the label you want to receive in the value field (that appears in the box brought up by command+option+Preferenes – as above). To receive all mail, leave this field blank.

You can change the number of messages listed in the main menu by setting MaxMessagesOnMainMenu

By default, the menu shows the last four unread messages received (or the last three received and an additional “View More” submenu). To change this, enter “MaxMessagesOnMainMenu” in the key field and enter the number of messages you want on the main menu in the value field (that appears in the box brought up by command+option+Preferenes – as above).

You can add applescript plugins to Notifier:

AppleScript plugins are written by simply implementing a handler like:

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.

Published in:  on July 11, 2008 at 4:03 pm Comments (11)

The URI to TrackBack this entry is: http://2thyme.wordpress.com/2008/07/11/google-notifier-for-mac-for-multiple-accounts/trackback/

RSS feed for comments on this post.

11 Comments Leave a comment.

  1. Interview Request

    Hello Dear and Respected,
    I hope you are fine and carrying on the great work you have been doing for the Internet surfers. I am Ghazala Khan from The Pakistani Spectator (TPS), We at TPS throw a candid look on everything happening in and for Pakistan in the world. We are trying to contribute our humble share in the webosphere. Our aim is to foster peace, progress and harmony with passion.

    We at TPS are carrying out a new series of interviews with the notable passionate bloggers, writers, and webmasters. In that regard, we would like to interview you, if you don’t mind. Please send us your approval for your interview at my email address “ghazala.khi at gmail.com”, so that I could send you the Interview questions. We would be extremely grateful.

    regards.

    Ghazala Khan
    The Pakistani Spectator
    http://www.pakspectator.com

  2. Could you send me a zip with the changed Google Notifier? I don’t have access to the developer tools so I can’t do this myself. Thanks!!!

  3. Hey Jason,

    If you don’t have the developer tools, no sweat. Its not a necessary step.

    What this accomplishes is adding a non functional menu item to the pull down from the menu bar item. I added a menu item “Work Email”. This description may or may not be appropriate for you, so a zip is not the best way to go.

    What I find even more useful is changing the color of the menu bar icon to uniquely identify which account it corresponds to. You don’t need developer tools, just a good image editor.

    Instructions are in the post … let me know what happens.

  4. [...] For info on getting the Google version of Notifier running with multiple GMail accounts, look at our older post here. [...]

  5. Hi there

    I’ve found a solution for you and the multiple popup problem. I found it annoying that gmail notifier uses it’s own popup instead of growl (which is pretty much the definitive popup info tool for OS X). Here’s a tool to let google mail notifier use growl, and then the popups won’t overlay each other: http://wafflesoftware.net/googlegrowl/

    Hope that helps :)

  6. Hi Sheldon,

    That does fix the tendency of the native Google notifiers to occasionally overlay each other. But since both notifiers use the same Google+Growl install, they both pick up and use the same icon on their respective Growl alert pop-ups.

    I couldn’t tell which new message was arriving in which
    account. Bummer.

  7. Hey, I’m trying to get this to work. I have 2 gmail accounts and all and I believe I followed all directions. But every time I restart, only the non duplicate icon is still in my top menu bar. I have to actually go back into applications and reopen the duplicate, for it to be back in the menu bar. Thoughts?

  8. Rah,

    Did you go to system preferences select accounts and add the duplicated copy of the notifier to the “login items” tab for your account? You should see the original already in the list. Adding the second will cause it to start up as well.

    If both are already there, you are having a more complicated issue.

  9. Ah, I think that was the issue. Thank you very much. :)

  10. Thanks for the tip! Have my work and personal accounts both notifying me now :D

  11. [...] Notify app for GMail on Mac OS X This little app does almost everything that GMail Notify+Growl will do, if you have modified it for multiple [...]


Leave a Comment