I am not sure where to start with this or whether it is possible. I frequently am in one application and have worked on a document/file. I then want to save the file and open it in another application. What I would like is a short script attahced to a hotkey which would reveal the file I am working on in a Finder window. I could then open it in the next application by right clicking it etc.
Even better perhaps, the script would ask for you to directly choose from the recommended applications, bypassing the Finder.
I suspect that the project will run into problems of inconsistency between applications, as to how to reference the file being worked on in the frontmost window of different applications.
This isn’t a scripting solution but a way that you can reveal the file your working on in the finder.
Say for example you have an illustrator doc open then right at the top of the document in the bar where the docs name is there’s usually a little icon in there as well.
you can right click or control click to give you a little menu drop down which gives you the path to your saved document.
just go to the option before the name of your file and the window will pop open in the finder and come to the front.
i think that will work in 99% of OSX apps.
Sorry not a scripting solution but hope this helps.
It would be helpful to know, what one application and another application is.
Every application behaves different. If both applications are scriptable, probably the detour to the Finder is not needed