Open File in Specific Folder with Specific Extension

this may be a simple question for some but I can't figure this one out.

  1. How do I tell KM to open a file with a specific extension in a specific folder?
  2. Is it possible to have KM search for a specific folder and open a file that contains a specific name variable?

I am trying to figure out how to open a file with ".md" extension in a specific folder in Marked App.

Am I on the right track?

Keyboard Maestro 8.0.4 “Open Markdown File in Marked App” Macro

Open Markdown File in Marked App.kmmacros (3.4 KB)

Yes, you are definitely on the right track. What you show should work on any files in the ~/Desktop/test folder as well as any files selected in the Finder. If any of those have the md extension, they will be opened.

What do you mean by that?

If a variable contained "md", then you could use that variable (eg, %Variable%DesiredExtension%) in the is condition in the If Then Else action.