On 10 September 2010 16:31, Jjgod Jiang wrote: > On Thu, Sep 9, 2010 at 8:47 PM, björn wrote: >> As a temporary solution I was thinking of adding a "Look Up in >> Dictionary" entry to the context menu so that you can at least >> right-click to look something up in the dictionary. I just have to >> figure out if there is some Apple Script-way of doing this so that I >> can hook up "osascript" to do it. (I get the impression that the only >> way to interact with Dictionary.app is via Services.) > > Have you looked at -showDefinitionForAttributedString:atPoint:? It's > available since 10.6, see "Displaying dictionary contents" section > in [1]. > > - Jiang > > [1] http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html
Thanks for the link! I was unaware of that method. Björn -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
