This still requires contacts, but cleans up the process and adds a menu...
Brett
On Nov 7, 2006, at 2:02 PM, Grant Hollingworth wrote:
- Oliver Taylor oliver@ollieman.net [2006-11-07 01:04]:
Something really interesting would be a way to lookup email addresses in the users' address book, though I have no idea if this is even possible.
That's a good idea. I made a simple version using contacts[1], which doesn't require Address Book to be open. I put it in the Text bundle because it seems applicable everywhere. Typing ctrl- shift-cmd-a (what's the easiest way of typing those key glyphs?) will replace the current selection or word with a name and email address returned by contacts.
TODO:
- pop up a list for multiple matches, instead of just using the
first one
- use osascript as a backup
- wrap name in quotation marks if necessary
- don't return error message on failure
[1] http://gnufoo.org/contacts/
<Find Email Address in Address Book.tmCommand>
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate