I'm creating a work around for a bug in the app Finale.
It gets confused when creating a PDF, and swaps the current filename out for the name of a random minimized window in the dock.
The goal is to create a macro that pastes the correct name as the PDF is created.
My Question: Is there an elegant method to get the file name of the front window?
Right now I'm opening the Save All... menu and copying it from there, butthere must be a cleaner method.
I don't know if this will help but while stepping through playlists in VLC I often want to delete the file that's playing and this is how I get its name: