How to run multiple Google Notifiers for different GMail accounts in OS X
Prepare app for re-signing
- Duplicate and rename the notifier .app file.
- Right-click on the copied .app and show package contents.
- Edit the files
App.icns
,GmailIcon.png
,nounread.png
, andunread.png
inContent/Resources
so that they can be distinguished from the original images (so you can tell which notifier is showing notifications).- For the png's, I opened each in Paintbrush.app and inverted the colors.
- I replaced App.icns with the .icns file from another mail program that I don't use.
- Open the
Info.plist
file inContents
in a text editor and change the<string>
associated with theCFBundleIdentifier
key fromcom.google.GmailNotifier
to something different but recognizable.
Obtaining a Signing Identity Note: this is necessary to avoid being prompted for a password each time the program is started.
- Open Applications > Utilities > Keychain Access.
- From the Keychain Access menu, choose Certificate Assistant > Create a Certificate.
- Fill in a name for the certificate. This name appears in the Keychain Access utility as the name of the certificate.
- Choose Self Signed Root from the Identity Type popup menu.
- Choose Code Signing from the Certificate Type popup menu.
- Check the Let me override defaults checkbox. Click Continue twice.
- Specify a serial number for the certificate. Any number will do as long as you have no other certificate with the same name and serial number. Click Continue.
- Fill in the information for the certificate. Click Continue until you can click Done.
Re-sign application We will use a codesign command-line tool to re-sign the notifier application. Below, use whatever name you have given to the duplicated notifier .app file place of "Google Notifier 2.app".
/usr/bin/codesign -f -s "MyCertificate" "/Applications/Google Notifier 2.app"
- Click Allow:
/Applications/Google Notifier 2.app: replacing existing signature
References
- http://hints.macworld.com/article.php?story=20061117161341318
- http://web.archive.org/web/20110224034132/http://newmotiongear.com/blogs/index.php/2011/02/20/how-to-re-sign-google
- http://web.archive.org/web/20110224034132/http://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html