Normally I would recommend going for something via Applescript but it seems like Dictionary.app doesn't expose anything via Applescript (though it totally should)
I presume there must be, since I use Scrivener and have a keyboard shortcut set-up for "Look Up in Dictionary and Thesaurus". Simply put the cursor within a word, type the shortcut, dictionary appears (then cmd+2 for thesaurus, if necessary).