rdef is a command line utility that parses all MacOSX dictionaries for a Chinese character or phrase and outputs the corresponding pinyin.