Address Book Fails to Search Entries

Search completely stopped working in Apple Address Book. Deleting the file (~/Library/Application\ Support/AddressBook/AddressBook-v22.abcddb) fixed the problem. Details and the source article follow:

  1. Quit all apps except Finder
  2. Open a Finder window and go to (home folder)/Library/Application Support/AddressBook/
  3. Drag AddressBook-v22.abcddb to the trash
  4. Launch Address Book

via Address Book Fails to Search Entries: Apple Support Communities.

Mac OS X Keychain Export is Broken

To remove passwords and keys from the keychain it seems like

$ security export -k login.keychain

would be the obvious way to go. Unfortunately, this usually gives the following error

$ security: SecKeychainItemExport: Passphrase is required for import/export.

Instead you can use the following command

$ security dump-keychain -d keychain

Update: The same limitations seen on the command line appear to be present in the GUI as well. The “File > Export Items…” menu is greyed out when selecting anything but public keys or certificates.

References:

Drag and drop dead

Among the many “improvements” in Calendar.app that actually make it less usable the latest one to annoy me is its defocusing of fields.

When you switch to another app whatever field has focus in the popup editor loses its focus. Because no field has focus dropping an item, say an email from Mail.app, becomes impossible since there is no drop target.

Change keyboard layout via Applescript

Changing the keyboard layout on a Mac through AppleScript used to be a one liner in Mac OS 9. Now it’s an exercise in GUI scripting.

UPDATE: More good links regarding how to switch keyboard layouts programmatically in Mac OS X.