public
Description: Assign Phonetic Name for Mac OS X Address Book Contacts
Homepage:
Clone URL: git://github.com/jjgod/apn.git
apn /
name age message
file .gitignore Thu Jul 24 20:16:32 -0700 2008 Initial Commit [Jjgod Jiang]
file AssignPhoneticName.py Loading commit data...
file README.markdown
file pinyin.py
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.