Opening last saved project file in application - help creating macro

Attached is a picture to show you what I'm trying to do: I'm trying to create a macro that opens my last saved project file in Cubase Pro. These are located in a list in cubase under the file menu - Submenu - Recent Projects. I've been able to get this to work using the macro in the picture, but only if my project is named the same. As soon as I save a new version (for example in the picture I saved my project as 5.3 instead of 5.2) Keyboard Maestro will no longer open the file.

Is there a way to make it so Keyboard Maestro will open the first file in the recent projects list, instead of opening it by name?

There is no way to select a menu based on position.

You can select a menu using a regular expression, so you can use

  • Select Menu: File ➤ Recent Projects ➤ ^1\ Sunlight.*.cpr

That should work, although dynamic menus like the Recent Projects menu sometimes don’t work well with the accessibility API, but it it works properly with a fixed name in your current Select Menu action, then it should work.

Hey Jon,

If Peter’s method doesn’t work you have a couple of options.

A) You can open the menu and type-select using Keyboard Maestro.

B) System Events should be able to select a menu item by position.

-Chris