How to get activeDocument file path in InDesign UXP?
Hi,
I'm building a UXP plugin for Adobe InDesign. I want to get the full file path of the currently open document.
I tried this:
const doc = app.activeDocument;
const filePath = await doc.fullName; // fullName returns a Promise
But I get this error:
Error: Could not find an entry of 'file:///path'
at l._getEntryImpl (uxp://uxp-internal/webfs_scripts.js:2)
Even when the document is saved, it still fails.
How can I get the file path of the active document in InDesign using UXP?
Is there any working method
Thanks!
