How to set selected file when using automator workflow?

Hi,

I am trying to make a macro which converts heic-files to jpg for all heic-files in a folder. However my issue is I do not know how to set the selected file for the automator workflow.

The automator workflow works, as far as I know.

Heic to Jpeg.kmmacros (20.6 KB)