Firstly, if macro groups control when a macro is active, so you almost certainly want the macro to be in a macro group that is active in those four applications, rather than an If that test that you are in one of those four apps, since its not at all clear what it would do if you were in some other app.
Then there are three problems, two easy ones and a hard one.
The process is basically:
- Get the path of the front document window in the current application.
- Ask which app you want to open it in.
- Open that path
- in the target application.
The first step is by far the hardest. There is no set way to get the path of the front document. However @ComplexPoint posted a plugin action that should work for most applications (requires 10.10).
The second step is the Prompt For User Input as you have shown.
The third step then just uses %Variable%Path% in the Open File or Folder action (where “Path” is the name of the variable you set in the first step.
And the fourth step requires you to test the result of the second step and execute a different Open action for each one:
If Result Button is Skim
Open %Variable%Path% with application Skim
If Result Button is Mendeley
Open %Variable%Path% with application Mendeley
etc