Path of frontmost documents

Some applications dont support applescript and therefore we are’t able to get file paths for any saved frontmost document, at least not the traditional way, be it by calling the app itself or by calling System Events

By the way, System Events isnt able to interpret the definition “document” the right way for application processes, and window properties don not reveal file paths.

Right now i am wondering if ObjC is able to get file urls for frontmost documents, no matter what application we are running ?