Unable to UI script control key (contextual) menu

I haven’t been able to find any way to activate the control-key or ‘right-click’ contextual menu for an application using UI commands. An example of what I hoped would work–but doesn’t–for the TextEdit application is (say you’re cursor is hovering over a mispelled):


tell application "TextEdit"
	activate
	tell application "System Events"
		tell process "TextEdit"
			key down control
			click
			key up control
                     (* right click *)
		end tell
	end tell
end tell

Does anyone know a technique that might work?

Here you go.

activate application "TextEdit"
tell application "System Events"
	tell process "TextEdit"
		perform action "AXShowMenu" of text area 1 of scroll area 1 of window 1
	end tell
end tell

you have to select text first, double click or by script

Moving to OS X…