Select or Show a Menu Item by position

Is there a way for the Select or Show a Menu Item action to select a menu item by it's position in the list rather than it's name?

For example, to get an application to open the most recent document, I'd like to trigger File > Open Recent > [first item in the submenu]

Here's how I do that in Logic Pro:

3 Likes