Best practice for prompting user to choose file / folder?

Here is a Macro that includes a JXA script to Choose File, that could be used with any macro.

###MACRO: Choose File to Open or Read into KM Variable @JXA