Serious Automator Scripting Deficiencies

In case you were tempted to play with Automator for creating contextual menu services, note that it supplies neither a way to type a keystroke nor execute a menu action. It is not designed for driving an application’s interface. However, you can create a service that invokes a script. See How to trigger a macro from the Services menu?.