How to pass selected filename to external program

Is it possible to define a hotkey to run an external program and pass the identification of the selected file to that program?

I'm able to cause the external program to run, but haven't been able to figure out how to pass anything to it. I've tried both %1%, {file} and {filepath$} all to no avail.

Yes it's possible,

Try using {filepath} instead of {file} the external program most likely needs the whole path to the file, so it can find it. Opus knows where it is, but not the external program.

If that's not it. post your code and let me take a look at it.

Sorry for the nuisance. I outsmarted myself by trying to use what I thought to be a very simple test case of passing file identification to a REXX interpreter that I have. Turns out that the REXX script doesn't receive arguments even f I invoke it from a command prompt in the manner that I was invoking it within OPUS. I don't fully understand that issue yet, but it's not relevant here and I've now successfully passed the file identification to the script invoked in a slightly different manner and also to other programs.