public
Description: Assign Phonetic Name for Mac OS X Address Book Contacts
Homepage:
Clone URL: git://github.com/jjgod/apn.git
Jjgod Jiang (author)
Thu Aug 13 00:01:30 -0700 2009
commit  2e8a672b459990c733f600773a2299de6fc42b87
tree    4ff07801a2e53d9879b3d14515a1d2bf7fee0302
parent  f6a192cadc2c55c29101f3a889db9ed525e81874
apn /
name age message
file .gitignore Thu Jul 24 20:16:32 -0700 2008 Initial Commit [Jjgod Jiang]
file AssignPhoneticName.py Thu Aug 13 00:01:30 -0700 2009 Use PyObjC AddressBook API instead of Scripting... [Jjgod Jiang]
file README.markdown Thu Jul 24 20:28:08 -0700 2008 Tiny README fixes [Jjgod Jiang]
file pinyin.py Thu Jul 24 22:05:24 -0700 2008 增加3个常用字和1个不常用字 (from fishy) [Jjgod Jiang]
README.markdown

AssignPhoneticName.py

需求

  • Mac OS X 10.5 (or other ScriptingBridge-capable systems)
  • Python (Pre-installed in Mac OS X)

使用

  1. 关闭 Address Book。

  2. 执行

    $ python AssignPhoneticName.py

这个命令会给所有包含中文的地址簿项根据 First Name 和 Last Name 分别分配对应的汉语拼音作为 Phonetic First Name 和 Phonetic Last Name。对于已经分配了 Phonetic Name 的,会跳过,除非使用 -r 参数调用这个脚本。


其他的问题请联系 gzjjgod@gmail.com。

Please use it at your own risk.