这个 workflow https://github.com/JinnLynn/alfred-workflows/tree/master/src/chinese-dictionary
script filter 里调用的 python
python cndict.py "{query}"
里面部分代码是这样的
.....
ret = translate(w)
is_eng = isEnglish(w)
feedback = alfred.Feedback()
translation = ret.get('translation', [])
basic = ret.get('basic', {})
phonetic = basic.get('phonetic')
us_phonetic = basic.get('us-phonetic')
uk_phonetic = basic.get('uk-phonetic')
.....
feedback.output()
我想在下一个 run script obejct 里面获取这个 us_phonetic 该怎么弄呀?
query=${1/\ \ / :drill:\\n[}
printf "\n* $query]" >>/Users/nichijou/Dropbox/vocabulary.org
想把它 append 到一个文件
1
nichijou OP 管理员帮转到 macOS 节点?
|