> Are you thinking of this?
> http://pypi.python.org/pypi/pyobjc-framework-DictionaryServices/2.2
>
I get the same IndexError while working with this wrapper. My guess is
python2.6 does not support DictionaryServices on Snow Leopard
.
--
http://mail.python.org/mailman/listinfo/python-list
Shashwat Anand wrote:
I wanted to use dictionary in my OSX terminal.
So I wrote a function dict() in my ~/.bash_profile
dict () {
python2.5 -c 'import sys, DictionaryServices; word = "
".join(sys.argv[1:]); print DictionaryServices.DCSCopyTextDefinition(None,
word, (0, len(word)))' $@
}
her