You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, it seems like active-win returns the path to the app behind the currently active window. That's not surprising, as the ReadMe says as much. But is it possible to get the path to the file that is in the active window?
For example, if the current window is a microsoft word file titled "great-document" saved to my desktop, running console.log(await activeWindow()) returns:
It is possible to get it on macOS using AppleScript. We could support it here if anyone does a good pull request. For Windows and Linux, I have no idea.
The property should be called filePath and should be top-level, not in owner.
Thanks for this cool tool!
Right now, it seems like active-win returns the path to the app behind the currently active window. That's not surprising, as the
ReadMe
says as much. But is it possible to get the path to the file that is in the active window?For example, if the current window is a microsoft word file titled "great-document" saved to my desktop, running
console.log(await activeWindow())
returns:The path that is listed here is the path to Microsoft Word, the app, itself.
I'm hoping to find the path to the file itself, which in this case would be:
Users/NL33/desktop/great-document.doc
Is there a way to use active-win to do that? Is it possible in general?
The text was updated successfully, but these errors were encountered: