Firstly – keep in mind that a menu item can be a regular expression if it starts with the caret character (“^”), so menus that change aren't usually all that difficult to deal with.
^Export Unmodified Original
Here's the basic methodology of a macro for this task that drives the OSX UI.