Get file with keyboard shortcut


I’m trying to build a mac spotlight type application and I want the user to be able to select a file in finder/file explorer, use a keyboard shortcut and the application will know which file is selected and then access is using the file system.

Is something like this possible and if yes, how do I do it?

Thanks for all your help !


@shivamlekhi did you find a solution? I’m trying to do the same thing, but can’t find anything about it…